diff options
author | Martin Storsjö <martin@martin.st> | 2012-01-25 12:40:05 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-01-25 22:13:56 +0200 |
commit | 990a746cec2fb82ca76b3a6fc28b35006e8d39bf (patch) | |
tree | 9549559752a1fb1dede3e0f29312614be4c7c1d4 /libavformat/movenc.c | |
parent | d55fa1cb25244eab9f919d6e04f1e9b3faf7b7c9 (diff) | |
download | ffmpeg-990a746cec2fb82ca76b3a6fc28b35006e8d39bf.tar.gz |
movenc: Reindent a block
Also add some space around operators and wrap a comment
that extends past the 80 char "limit"/guideline.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 95d92aa71c..5e8bed2001 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -2863,20 +2863,22 @@ static int mov_write_trailer(AVFormatContext *s) int64_t moov_pos = avio_tell(pb); if (!(mov->flags & FF_MOV_FLAG_FRAGMENT)) { - /* Write size of mdat tag */ - if (mov->mdat_size+8 <= UINT32_MAX) { - avio_seek(pb, mov->mdat_pos, SEEK_SET); - avio_wb32(pb, mov->mdat_size+8); - } else { - /* overwrite 'wide' placeholder atom */ - avio_seek(pb, mov->mdat_pos - 8, SEEK_SET); - avio_wb32(pb, 1); /* special value: real atom size will be 64 bit value after tag field */ - ffio_wfourcc(pb, "mdat"); - avio_wb64(pb, mov->mdat_size+16); - } - avio_seek(pb, moov_pos, SEEK_SET); + /* Write size of mdat tag */ + if (mov->mdat_size + 8 <= UINT32_MAX) { + avio_seek(pb, mov->mdat_pos, SEEK_SET); + avio_wb32(pb, mov->mdat_size + 8); + } else { + /* overwrite 'wide' placeholder atom */ + avio_seek(pb, mov->mdat_pos - 8, SEEK_SET); + /* special value: real atom size will be 64 bit value after + * tag field */ + avio_wb32(pb, 1); + ffio_wfourcc(pb, "mdat"); + avio_wb64(pb, mov->mdat_size + 16); + } + avio_seek(pb, moov_pos, SEEK_SET); - mov_write_moov_tag(pb, mov, s); + mov_write_moov_tag(pb, mov, s); } else { mov_flush_fragment(s); mov_write_mfra_tag(pb, mov); |