Commit c3ad3737 authored by kabi's avatar kabi

* resync without endless loop


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@849 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 10a98163
...@@ -2397,8 +2397,10 @@ static int decode_frame(AVCodecContext * avctx, ...@@ -2397,8 +2397,10 @@ static int decode_frame(AVCodecContext * avctx,
if (len > buf_size) if (len > buf_size)
len = buf_size; len = buf_size;
if (len == 0) { if (len == 0) {
/* frame too long: resync */ /* frame too long: resync */
s->frame_size = 0; s->frame_size = 0;
memcpy(s->inbuf, s->inbuf + 1, s->inbuf_ptr - s->inbuf - 1);
s->inbuf_ptr--;
} else { } else {
UINT8 *p, *pend; UINT8 *p, *pend;
UINT32 header1; UINT32 header1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment