Skip to content
Snippets Groups Projects
Commit fc06ee6e authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Anton Khirnov
Browse files

mmvideo: fix uninitialized variable use in mm_decode_intra


Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 211ca69b
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,8 @@ static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert) ...@@ -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) 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; GetByteContext data_ptr;
if (bytestream2_get_bytes_left(&s->gb) < data_off) if (bytestream2_get_bytes_left(&s->gb) < data_off)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment