Commit ba986931 authored by Yusuke Nakamura's avatar Yusuke Nakamura Committed by Derek Buitenhuis

mov: Take stps entries into consideration also about key_off.

Splitted files don't start always from a sync sample.
Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent 2bcbd984
......@@ -1754,7 +1754,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
unsigned int stts_sample = 0;
unsigned int sample_size;
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment