mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
* resync without endless loop
Originally committed as revision 849 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
62959862df
commit
3625e88ab7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user