aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-01 17:54:58 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-01 17:54:58 +0200
commit627dd7fe7ee68259a76c742ea9fdb0916101d152 (patch)
tree817a9a1ed7d6c4449f1dd7866ae3592b087f752a /libavformat/movenc.c
parent138581c41a129bdc86b97230d63dfc7fc98271a4 (diff)
downloadffmpeg-627dd7fe7ee68259a76c742ea9fdb0916101d152.tar.gz
avformat/movenc: Fix potential signed overflows
Fixes CID1302838 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index cfd53f1ec3..9b2c8da27b 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2374,9 +2374,9 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVMuxContext *mov,
if (!track_width_1616 ||
track->height != track->enc->height ||
track_width_1616 > UINT32_MAX)
- track_width_1616 = track->enc->width * 0x10000;
+ track_width_1616 = track->enc->width * 0x10000U;
avio_wb32(pb, track_width_1616);
- avio_wb32(pb, track->height * 0x10000);
+ avio_wb32(pb, track->height * 0x10000U);
}
} else {
avio_wb32(pb, 0);