mmvideo: fix uninitialized variable use in mm_decode_intra
authorVittorio Giovara <vittorio.giovara@gmail.com>
Sat, 26 Oct 2013 23:54:47 +0000 (01:54 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 27 Oct 2013 20:32:11 +0000 (21:32 +0100)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/mmvideo.c

index 1da104c..edf602b 100644 (file)
@@ -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)