[FFmpeg-cvslog] avformat/mov: allow seeking back to the begin even if nothing is marked as keyframe

Michael Niedermayer git at videolan.org
Mon May 26 02:07:43 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 26 01:23:16 2014 +0200| [96470ca22b3b46677de0e2df64e87c5ec80d752b] | committer: Michael Niedermayer

avformat/mov: allow seeking back to the begin even if nothing is marked as keyframe

Fixes Ticket 3663

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/mov.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 7203d58..befbfa6 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2157,7 +2157,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
                 if (sc->keyframe_absent
                     && !sc->stps_count
                     && !rap_group_present
-                    && st->codec->codec_type == AVMEDIA_TYPE_AUDIO)
+                    && (st->codec->codec_type == AVMEDIA_TYPE_AUDIO || (i==0 && j==0)))
                      keyframe = 1;
                 if (keyframe)
                     distance = 0;



More information about the ffmpeg-cvslog mailing list