aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-10 03:43:54 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-10 05:02:27 +0100
commitb00a3bf3320645c16b312cd04b1fc2cf2934fae9 (patch)
tree261a7261abcee2691f0b5fbbc3d758b56b2df5b3
parent08fe58ef3280134bbaafef83442005d68342cac6 (diff)
downloadffmpeg-b00a3bf3320645c16b312cd04b1fc2cf2934fae9.tar.gz
avformat/movenc: workaround bug in "PathScale EKOPath(tm) Compiler Suite Version 4.0.12.1"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 7824dc5150c0ea44ffa7cd4d57803f9a9697e7d7) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/movenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index dd7dd52c18..81863440e3 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1894,7 +1894,8 @@ static int mov_write_mvhd_tag(AVIOContext *pb, MOVMuxContext *mov)
}
version = max_track_len < UINT32_MAX ? 0 : 1;
- (version == 1) ? avio_wb32(pb, 120) : avio_wb32(pb, 108); /* size */
+ avio_wb32(pb, version == 1 ? 120 : 108); /* size */
+
ffio_wfourcc(pb, "mvhd");
avio_w8(pb, version);
avio_wb24(pb, 0); /* flags */