mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/mpeg12: Try to fetch pts/dts from both the packet associated with the picture start code as well as earlier start codes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
69ee915e1c
commit
ad465e7897
@ -234,7 +234,7 @@ int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (pc->frame_start_found == 0 && s && state == PICTURE_START_CODE) {
|
if (pc->frame_start_found == 0 && s && state == PICTURE_START_CODE) {
|
||||||
ff_fetch_timestamp(s, i - 3, 1, 0);
|
ff_fetch_timestamp(s, i - 3, 1, i > 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user