ffmpeg | branch: master | Michael Niedermayer <michae...@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 <michae...@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 */

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to