[FFmpeg-cvslog] mmaldec: Use av_assert0() instead of assert()

Michael Niedermayer git at videolan.org
Tue Jun 21 13:04:48 CEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Apr 14 12:21:17 2016 +0200| [366ba2dee1f2b17825b42e2164d3b9879f0271b1] | committer: Anton Khirnov

mmaldec: Use av_assert0() instead of assert()

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=366ba2dee1f2b17825b42e2164d3b9879f0271b1
---

 libavcodec/mmaldec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index a0685ea..5986658 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list