diff options
author | Martin Storsjö <martin@martin.st> | 2013-09-10 18:43:19 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-09-22 16:10:21 +0300 |
commit | f1eac2b8a0370b908cd691086d11f51342054730 (patch) | |
tree | 1c3fb7d2d23054acfb74e1be2e19215f0df45bb0 /libavformat/movenc.c | |
parent | a9553bbb336a7186c62b3b14a0499c1b6ba61ebd (diff) | |
download | ffmpeg-f1eac2b8a0370b908cd691086d11f51342054730.tar.gz |
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@martin.st>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 16107b1596..f4bd990fdf 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)) { |