OSDN Git Service

tests/mjpegenc_huffman: replace assert() with av_assert0()
authorRostislav Pehlivanov <atomnuker@gmail.com>
Thu, 9 Feb 2017 02:59:22 +0000 (02:59 +0000)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Thu, 9 Feb 2017 02:59:22 +0000 (02:59 +0000)
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
libavcodec/tests/mjpegenc_huffman.c

index 4559cbe..b9fcdba 100644 (file)
@@ -39,7 +39,7 @@ static int check_lengths(int L, int expected_length,
     int actual_length = 0, i, j, k, prob, length;
     int ret = 0;
     double cantor_measure = 0;
-    assert(nprobs <= 256);
+    av_assert0(nprobs <= 256);
 
     for (i = 0; i < nprobs; i++) {
         val_counts[i] = (PTable){.value = i, .prob = probs[i]};