[FFmpeg-cvslog] xmv: Fix integer overflow

Michael Niedermayer git at videolan.org
Fri Nov 9 17:26:53 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov  9 17:17:37 2012 +0100| [7989f7e0b5229e618a7f6bf97c6608090a7db106] | committer: Michael Niedermayer

xmv: Fix integer overflow

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7989f7e0b5229e618a7f6bf97c6608090a7db106
---

 libavformat/xmv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/xmv.c b/libavformat/xmv.c
index f250aad..81fb94c 100644
--- a/libavformat/xmv.c
+++ b/libavformat/xmv.c
@@ -77,7 +77,7 @@ typedef struct XMVAudioPacket {
     uint16_t bits_per_sample; ///< Bits per compressed sample.
     uint32_t bit_rate;        ///< Bits of compressed data per second.
     uint16_t flags;           ///< Flags
-    uint16_t block_align;     ///< Bytes per compressed block.
+    unsigned block_align;     ///< Bytes per compressed block.
     uint16_t block_samples;   ///< Decompressed samples per compressed block.
 
     enum AVCodecID codec_id; ///< The codec ID of the compression scheme.



More information about the ffmpeg-cvslog mailing list