Commit a0911b05 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mov: fix keyframe flags for sample from chromium Issue 340865

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 058a3d65
......@@ -2162,6 +2162,11 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
rap_group_index++;
}
}
if (sc->keyframe_absent
&& !sc->stps_count
&& !rap_group_present
&& st->codec->codec_type == AVMEDIA_TYPE_AUDIO)
keyframe = 1;
if (keyframe)
distance = 0;
sample_size = sc->stsz_sample_size > 0 ? sc->stsz_sample_size : sc->sample_sizes[current_sample];
......
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