You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge commit 'a9553bbb336a7186c62b3b14a0499c1b6ba61ebd'
* commit 'a9553bbb336a7186c62b3b14a0499c1b6ba61ebd': movenc: Set all implicit flags immediately in mov_write_header Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -3625,12 +3625,16 @@ static int mov_write_header(AVFormatContext *s)
|
|||||||
/* Set the FRAGMENT flag if any of the fragmentation methods are
|
/* Set the FRAGMENT flag if any of the fragmentation methods are
|
||||||
* enabled. */
|
* enabled. */
|
||||||
if (mov->max_fragment_duration || mov->max_fragment_size ||
|
if (mov->max_fragment_duration || mov->max_fragment_size ||
|
||||||
mov->mode == MODE_ISM ||
|
|
||||||
mov->flags & (FF_MOV_FLAG_EMPTY_MOOV |
|
mov->flags & (FF_MOV_FLAG_EMPTY_MOOV |
|
||||||
FF_MOV_FLAG_FRAG_KEYFRAME |
|
FF_MOV_FLAG_FRAG_KEYFRAME |
|
||||||
FF_MOV_FLAG_FRAG_CUSTOM))
|
FF_MOV_FLAG_FRAG_CUSTOM))
|
||||||
mov->flags |= FF_MOV_FLAG_FRAGMENT;
|
mov->flags |= FF_MOV_FLAG_FRAGMENT;
|
||||||
|
|
||||||
|
/* Set other implicit flags immediately */
|
||||||
|
if (mov->mode == MODE_ISM)
|
||||||
|
mov->flags |= FF_MOV_FLAG_EMPTY_MOOV | FF_MOV_FLAG_SEPARATE_MOOF |
|
||||||
|
FF_MOV_FLAG_FRAGMENT;
|
||||||
|
|
||||||
/* faststart: moov at the beginning of the file, if supported */
|
/* faststart: moov at the beginning of the file, if supported */
|
||||||
if (mov->flags & FF_MOV_FLAG_FASTSTART) {
|
if (mov->flags & FF_MOV_FLAG_FASTSTART) {
|
||||||
if ((mov->flags & FF_MOV_FLAG_FRAGMENT) ||
|
if ((mov->flags & FF_MOV_FLAG_FRAGMENT) ||
|
||||||
@@ -3823,7 +3827,6 @@ static int mov_write_header(AVFormatContext *s)
|
|||||||
FF_MOV_FLAG_FRAG_CUSTOM)) &&
|
FF_MOV_FLAG_FRAG_CUSTOM)) &&
|
||||||
!mov->max_fragment_duration && !mov->max_fragment_size)
|
!mov->max_fragment_duration && !mov->max_fragment_size)
|
||||||
mov->max_fragment_duration = 5000000;
|
mov->max_fragment_duration = 5000000;
|
||||||
mov->flags |= FF_MOV_FLAG_EMPTY_MOOV | FF_MOV_FLAG_SEPARATE_MOOF;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mov->reserved_moov_size){
|
if (mov->reserved_moov_size){
|
||||||
|
Reference in New Issue
Block a user