aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-02 23:10:44 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-02 23:10:44 +0200
commit582f36ca3fb1c69dbe3478f174d36278f5dd3f63 (patch)
tree9763c142840b29411b73ae2c6e9609580642306d
parent69ce34c796dd2d595f3312848cf6d0c87506e0d0 (diff)
downloadffmpeg-582f36ca3fb1c69dbe3478f174d36278f5dd3f63.tar.gz
tools/qt-faststart: Fix unintended sign extension of current_offset
Fixes: CID733809 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--tools/qt-faststart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c
index 489c1ab234..cb36c4331e 100644
--- a/tools/qt-faststart.c
+++ b/tools/qt-faststart.c
@@ -240,7 +240,7 @@ int main(int argc, char *argv[])
goto error_out;
}
for (j = 0; j < offset_count; j++) {
- current_offset = BE_32(&moov_atom[i + 12 + j * 4]);
+ current_offset = (uint32_t)BE_32(&moov_atom[i + 12 + j * 4]);
current_offset += moov_atom_size;
moov_atom[i + 12 + j * 4 + 0] = (current_offset >> 24) & 0xFF;
moov_atom[i + 12 + j * 4 + 1] = (current_offset >> 16) & 0xFF;