[FFmpeg-cvslog] avcodec/mss2: use < 0 instead of != 0 to check for error of vlc initialization
Michael Niedermayer
git at videolan.org
Tue May 19 04:16:23 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue May 19 03:22:33 2015 +0200| [8ea9334b31546880dfd2b5dc49497b8da9a620bf] | committer: Michael Niedermayer
avcodec/mss2: use < 0 instead of != 0 to check for error of vlc initialization
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8ea9334b31546880dfd2b5dc49497b8da9a620bf
---
libavcodec/mss2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mss2.c b/libavcodec/mss2.c
index 4d53f8a..5e56e4d 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 */
More information about the ffmpeg-cvslog
mailing list