mmaldec: Use av_assert0() instead of assert()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 14 Apr 2016 10:21:17 +0000 (12:21 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sat, 30 Apr 2016 06:00:02 +0000 (08:00 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/mmaldec.c

index a0685ea..5986658 100644 (file)
@@ -166,7 +166,7 @@ static void ffmmal_stop_decoder(AVCodecContext *avctx)
     }
     ctx->waiting_buffers_tail = NULL;
 
-    assert(avpriv_atomic_get(&ctx->packets_buffered) == 0);
+    av_assert0(avpriv_atomic_get(&ctx->packets_buffered) == 0);
 
     ctx->frames_output = ctx->eos_received = ctx->eos_sent = ctx->packets_sent = ctx->extradata_sent = 0;
 }