aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
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:30:34 +0100
commit5202621ac413ff82a65ee81d145e5ee704360c22 (patch)
treeecbd74d18fad7d7aa3252d26682f91945176b471 /libavformat
parentda6a8c9cfda5ac28a7936efd317904b9e69daf93 (diff)
downloadffmpeg-5202621ac413ff82a65ee81d145e5ee704360c22.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)
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index b5d3e93ad5..c2d2a07893 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2017,6 +2017,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];