diff options
author | Martin Storsjö <martin@martin.st> | 2014-12-18 23:59:27 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-01-03 01:18:38 +0200 |
commit | 724cbea7193945fe5a5b4dea8ede344803572844 (patch) | |
tree | c8ac09fcefdc363a3f6ab892e2b3204ebcd52bc2 /libavformat | |
parent | 355d01a1bf55297b1d1f04e4bfbf0ddc93b6247e (diff) | |
download | ffmpeg-724cbea7193945fe5a5b4dea8ede344803572844.tar.gz |
movenc: Remove an unnecessary condition when flushing fragments
If fragments == 0 it means we haven't written any moov atom yet.
If the empty_moov flag is set, we already have written an empty moov
atom at startup. Thus, the check for empty_moov is redundant.
This is in preparation for allowing writing the moov atom later,
even when using the empty moov flag.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-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 3f5a6aee7e..fe5f5ed6ce 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3089,7 +3089,7 @@ static int mov_flush_fragment(AVFormatContext *s) if (!(mov->flags & FF_MOV_FLAG_FRAGMENT)) return 0; - if (!(mov->flags & FF_MOV_FLAG_EMPTY_MOOV) && mov->fragments == 0) { + if (mov->fragments == 0) { int64_t pos = avio_tell(s->pb); int ret; AVIOContext *moov_buf; |