aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2013-10-27 01:54:47 +0200
committerAnton Khirnov <anton@khirnov.net>2013-10-27 21:32:11 +0100
commitfc06ee6ee377cc3b512dff8f02057e26311bc4da (patch)
treefa22b6d1190cbdf831afc68b1f0adb9143d26087
parent211ca69b13eb0a127a9ef7e70ddaccdab125d1c5 (diff)
downloadffmpeg-fc06ee6ee377cc3b512dff8f02057e26311bc4da.tar.gz
mmvideo: fix uninitialized variable use in mm_decode_intra
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavcodec/mmvideo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c
index 1da104c670..edf602bfba 100644
--- a/libavcodec/mmvideo.c
+++ b/libavcodec/mmvideo.c
@@ -126,7 +126,8 @@ static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert)
*/
static int mm_decode_inter(MmContext * s, int half_horiz, int half_vert)
{
- int data_off = bytestream2_get_le16(&s->gb), y;
+ int data_off = bytestream2_get_le16(&s->gb);
+ int y = 0;
GetByteContext data_ptr;
if (bytestream2_get_bytes_left(&s->gb) < data_off)