Commit 7a56695c authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Carl Eugen Hoyos
Browse files

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


Fixes ticket #3362.
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
(cherry picked from commit a0911b05)

Conflicts:
	libavformat/mov.c
parent 12bf790b
Showing with 4 additions and 0 deletions
+4 -0
......@@ -1927,6 +1927,10 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
if (stps_index + 1 < sc->stps_count)
stps_index++;
}
if (sc->keyframe_absent
&& !sc->stps_count
&& st->codec->codec_type == AVMEDIA_TYPE_AUDIO)
keyframe = 1;
if (keyframe)
distance = 0;
sample_size = sc->alt_sample_size > 0 ? sc->alt_sample_size : sc->sample_sizes[current_sample];
......
Supports Markdown
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