Skip to content
Snippets Groups Projects
Commit 8ea9334b authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/mss2: use < 0 instead of != 0 to check for error of vlc initialization

parent b0322e4a
No related branches found
No related tags found
No related merge requests found
...@@ -317,7 +317,7 @@ static int decode_rle(GetBitContext *gb, uint8_t *pal_dst, int pal_stride, ...@@ -317,7 +317,7 @@ static int decode_rle(GetBitContext *gb, uint8_t *pal_dst, int pal_stride,
if (next_code != 1 << current_length) if (next_code != 1 << current_length)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
if (i = init_vlc(&vlc, 9, alphabet_size, bits, 1, 1, codes, 4, 4, 0)) if ((i = init_vlc(&vlc, 9, alphabet_size, bits, 1, 1, codes, 4, 4, 0)) < 0)
return i; return i;
/* frame decode */ /* frame decode */
......
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