Commit 3625e88a authored by Zdenek Kabelac's avatar Zdenek Kabelac

* resync without endless loop

Originally committed as revision 849 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 62959862
......@@ -2399,6 +2399,8 @@ static int decode_frame(AVCodecContext * avctx,
if (len == 0) {
/* 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;
......
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