You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
avcodec/mpeg4video_parser: Fix incorrect spliting of MPEG-4 studio frames
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@ -61,6 +61,8 @@ int ff_mpeg4_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size)
|
|||||||
for (; i < buf_size; i++) {
|
for (; i < buf_size; i++) {
|
||||||
state = (state << 8) | buf[i];
|
state = (state << 8) | buf[i];
|
||||||
if ((state & 0xFFFFFF00) == 0x100) {
|
if ((state & 0xFFFFFF00) == 0x100) {
|
||||||
|
if (state == SLICE_STARTCODE || state == EXT_STARTCODE)
|
||||||
|
continue;
|
||||||
pc->frame_start_found = 0;
|
pc->frame_start_found = 0;
|
||||||
pc->state = -1;
|
pc->state = -1;
|
||||||
return i - 3;
|
return i - 3;
|
||||||
|
Reference in New Issue
Block a user