1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

mov: Take stps entries into consideration also about key_off.

Splitted files don't start always from a sync sample.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
Yusuke Nakamura
2012-04-13 19:44:34 +09:00
committed by Derek Buitenhuis
parent 2bcbd98459
commit ba9869311f

View File

@@ -1754,7 +1754,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
unsigned int stts_sample = 0; unsigned int stts_sample = 0;
unsigned int sample_size; unsigned int sample_size;
unsigned int distance = 0; unsigned int distance = 0;
int key_off = sc->keyframes && sc->keyframes[0] == 1; int key_off = (sc->keyframes && sc->keyframes[0] == 1) || (sc->stps_data && sc->stps_data[0] == 1);
current_dts -= sc->dts_shift; current_dts -= sc->dts_shift;