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>
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)) {