[FFmpeg-cvslog] avformat/mov: fix keyframe flags for sample from chromium Issue 340865

Michael Niedermayer git at videolan.org
Mon Mar 24 23:48:26 CET 2014


ffmpeg | branch: release/2.0 | Michael Niedermayer <michaelni at gmx.at> | Wed Feb 12 06:32:51 2014 +0100| [5ee384c4eb6b4f6cc724bc2e72a31a3bc9839247] | committer: Carl Eugen Hoyos

avformat/mov: fix keyframe flags for sample from chromium Issue 340865

Fixes ticket #3362.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit a0911b059763b8f13c70adcbbe71e10382855104)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5ee384c4eb6b4f6cc724bc2e72a31a3bc9839247
---

 libavformat/mov.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 790c855..b668c82 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];



More information about the ffmpeg-cvslog mailing list