aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-12 06:32:51 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-03-24 23:36:07 +0100
commit5ee384c4eb6b4f6cc724bc2e72a31a3bc9839247 (patch)
tree1039b22927943b865095a72a590e43deffc0b4cc
parent9ecd0f34adcc042bb4a009e9e806f35bf75f5e9c (diff)
downloadffmpeg-5ee384c4eb6b4f6cc724bc2e72a31a3bc9839247.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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 790c855ecc..b668c8276a 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2054,6 +2054,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];