[FFmpeg-cvslog] movenc: Use keyframes as default fragmentation point in ismv

Martin Storsjö git at videolan.org
Mon Sep 23 13:15:41 CEST 2013


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Sep 10 18:43:19 2013 +0300| [f1eac2b8a0370b908cd691086d11f51342054730] | committer: Martin Storsjö

movenc: Use keyframes as default fragmentation point in ismv

Fragmenting blindly to a certain duration isn't a good choice
if one should be able to switch between different qualities,
therefore default to keyframes instead.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

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

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 16107b1..f4bd990 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3300,7 +3300,7 @@ static int mov_write_header(AVFormatContext *s)
         if (!(mov->flags & (FF_MOV_FLAG_FRAG_KEYFRAME |
                             FF_MOV_FLAG_FRAG_CUSTOM)) &&
             !mov->max_fragment_duration && !mov->max_fragment_size)
-            mov->max_fragment_duration = 5000000;
+            mov->flags |= FF_MOV_FLAG_FRAG_KEYFRAME;
     }
 
     if (!(mov->flags & FF_MOV_FLAG_FRAGMENT)) {



More information about the ffmpeg-cvslog mailing list