[FFmpeg-cvslog] avcodec/libaomenc: use av_assert0()
James Almer
git at videolan.org
Fri Mar 30 04:37:13 EEST 2018
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Mar 29 22:35:33 2018 -0300| [c42c99c3e5ac4f5fe55e06d5cbdfe8a83beed0e8] | committer: James Almer
avcodec/libaomenc: use av_assert0()
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c42c99c3e5ac4f5fe55e06d5cbdfe8a83beed0e8
---
libavcodec/libaomenc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
index f075bf4de7..8ebdcc20e3 100644
--- a/libavcodec/libaomenc.c
+++ b/libavcodec/libaomenc.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list