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:32:11 +0100 |
commit | 3c880d2765139e204e2132e6c6e4c7b65addaa9d (patch) | |
tree | 4cb4c0b5c7990f54990fbf305d303d1f5cf091c7 | |
parent | 63dcf7c77c4aa5656c09c46cc1ed229decb672d3 (diff) | |
download | ffmpeg-3c880d2765139e204e2132e6c6e4c7b65addaa9d.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 8b4f70b9cb..d19aa16483 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2144,6 +2144,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]; |