OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6295986
)
* resync without endless loop
author
Zdenek Kabelac
<kabi@informatics.muni.cz>
Fri, 9 Aug 2002 10:43:02 +0000
(10:43 +0000)
committer
Zdenek Kabelac
<kabi@informatics.muni.cz>
Fri, 9 Aug 2002 10:43:02 +0000
(10:43 +0000)
Originally committed as revision 849 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegaudiodec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegaudiodec.c
b/libavcodec/mpegaudiodec.c
index
1dabdac
..
93bd147
100644
(file)
--- a/
libavcodec/mpegaudiodec.c
+++ b/
libavcodec/mpegaudiodec.c
@@
-2397,8
+2397,10
@@
static int decode_frame(AVCodecContext * avctx,
if (len > buf_size)
len = buf_size;
if (len == 0) {
-
/* frame too long: resync */
+ /* frame too long: resync */
s->frame_size = 0;
+ memcpy(s->inbuf, s->inbuf + 1, s->inbuf_ptr - s->inbuf - 1);
+ s->inbuf_ptr--;
} else {
UINT8 *p, *pend;
UINT32 header1;