[FFmpeg-cvslog] mmvideo: fix uninitialized variable use in mm_decode_intra
Vittorio Giovara
git at videolan.org
Mon Oct 28 10:18:56 CET 2013
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Sun Oct 27 01:54:47 2013 +0200| [fc06ee6ee377cc3b512dff8f02057e26311bc4da] | committer: Anton Khirnov
mmvideo: fix uninitialized variable use in mm_decode_intra
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fc06ee6ee377cc3b512dff8f02057e26311bc4da
---
libavcodec/mmvideo.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c
index 1da104c..edf602b 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)
More information about the ffmpeg-cvslog
mailing list