diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-12 06:32:51 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-03-24 23:38:13 +0100 |
commit | c6f2ad9f944d07379072553a310bedc94cd2e74f (patch) | |
tree | 6a3ec1dc394bbfe83de888c5b73fbd43eaa7155e | |
parent | cf4099161a33643ca620796a4dc4d183c5b48b3a (diff) | |
download | ffmpeg-c6f2ad9f944d07379072553a310bedc94cd2e74f.tar.gz |
avformat/mov: fix keyframe flags for sample from chromium Issue 340865
Fixes ticket #3362.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit a0911b059763b8f13c70adcbbe71e10382855104)
-rw-r--r-- | libavformat/mov.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 4f12f0f8f8..bab6d73586 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2027,6 +2027,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->alt_sample_size > 0 ? sc->alt_sample_size : sc->sample_sizes[current_sample]; |