You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
* resync without endless loop
Originally committed as revision 849 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -2399,6 +2399,8 @@ static int decode_frame(AVCodecContext * avctx,
|
|||||||
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;
|
||||||
|
Reference in New Issue
Block a user