mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
mov: check stps correctly, avoid overreading 1 element.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3669915e93
commit
4392e69ad4
@ -1961,7 +1961,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
|
||||
unsigned int rap_group_index = 0;
|
||||
unsigned int rap_group_sample = 0;
|
||||
int rap_group_present = sc->rap_group_count && sc->rap_group;
|
||||
int key_off = (sc->keyframe_count && sc->keyframes[0] > 0) || (sc->stps_data && sc->stps_data[0] > 0);
|
||||
int key_off = (sc->keyframe_count && sc->keyframes[0] > 0) || (sc->stps_count && sc->stps_data[0] > 0);
|
||||
|
||||
current_dts -= sc->dts_shift;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user