lzwenc: change assert to av_assert
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 18 Oct 2012 19:42:04 +0000 (21:42 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 18 Oct 2012 19:42:04 +0000 (21:42 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/lzwenc.c

index 0757d02..7e30765 100644 (file)
@@ -76,7 +76,7 @@ static inline int hash(int head, const int add)
     head ^= (add << LZW_HASH_SHIFT);
     if (head >= LZW_HASH_SIZE)
         head -= LZW_HASH_SIZE;
-    assert(head >= 0 && head < LZW_HASH_SIZE);
+    av_assert2(head >= 0 && head < LZW_HASH_SIZE);
     return head;
 }