[FFmpeg-cvslog] avformat/mov: allow seeking back to the begin even if nothing is marked as keyframe
Michael Niedermayer
git at videolan.org
Sat May 31 12:23:03 CEST 2014
ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Mon May 26 01:23:16 2014 +0200| [a5a6f6fec338112966d1bc21a52440c75831050f] | committer: Carl Eugen Hoyos
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>
(cherry picked from commit 96470ca22b3b46677de0e2df64e87c5ec80d752b)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a5a6f6fec338112966d1bc21a52440c75831050f
---
libavformat/mov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3434d4f..3fb7747 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2167,7 +2167,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