diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2013-10-27 01:54:47 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-10-27 21:32:11 +0100 |
commit | fc06ee6ee377cc3b512dff8f02057e26311bc4da (patch) | |
tree | fa22b6d1190cbdf831afc68b1f0adb9143d26087 | |
parent | 211ca69b13eb0a127a9ef7e70ddaccdab125d1c5 (diff) | |
download | ffmpeg-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.c | 3 |
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) |