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:43:30 +0100 |
commit | 7a56695ced39dc6ef2db9e78a76792172e39068a (patch) | |
tree | bd550f65a9072fd0a21e88027f96b489b292b04e | |
parent | 12bf790b850b817e2ac182f70f98276804bb97a4 (diff) | |
download | ffmpeg-7a56695ced39dc6ef2db9e78a76792172e39068a.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)
Conflicts:
libavformat/mov.c
-rw-r--r-- | libavformat/mov.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 5534629dd7..df83a64a23 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -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]; |