mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
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>
This commit is contained in:
parent
a9553bbb33
commit
f1eac2b8a0
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user