aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-19 03:22:33 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-19 03:25:53 +0200
commit8ea9334b31546880dfd2b5dc49497b8da9a620bf (patch)
tree6cca1087b4fa9e6b6169a53a4eac3d4dace225f0
parentb0322e4a9e326f41e0214abb0083fe9eb7407460 (diff)
downloadffmpeg-8ea9334b31546880dfd2b5dc49497b8da9a620bf.tar.gz
avcodec/mss2: use < 0 instead of != 0 to check for error of vlc initialization
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mss2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mss2.c b/libavcodec/mss2.c
index 4d53f8ab8f..5e56e4dbb2 100644
--- a/libavcodec/mss2.c
+++ b/libavcodec/mss2.c
@@ -317,7 +317,7 @@ static int decode_rle(GetBitContext *gb, uint8_t *pal_dst, int pal_stride,
if (next_code != 1 << current_length)
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;
/* frame decode */