]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/libaomenc: use av_assert0()
authorJames Almer <jamrial@gmail.com>
Fri, 30 Mar 2018 01:35:33 +0000 (22:35 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 30 Mar 2018 01:35:33 +0000 (22:35 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/libaomenc.c

index f075bf4de7969483b4700ed4b999259b597f9ca1..8ebdcc20e3ef25fb64da47cccaaaba5d1368cc49 100644 (file)
@@ -27,6 +27,7 @@
 #include <aom/aom_encoder.h>
 #include <aom/aomcx.h>
 
+#include "libavutil/avassert.h"
 #include "libavutil/base64.h"
 #include "libavutil/common.h"
 #include "libavutil/mathematics.h"
@@ -546,7 +547,7 @@ static int queue_frames(AVCodecContext *avctx, AVPacket *pkt_out)
 
                 /* avoid storing the frame when the list is empty and we haven't yet
                  * provided a frame for output */
-                assert(!ctx->coded_frame_list);
+                av_assert0(!ctx->coded_frame_list);
                 cx_pktcpy(&cx_frame, pkt);
                 size = storeframe(avctx, &cx_frame, pkt_out);
                 if (size < 0)