Commit c42c99c3 authored by James Almer's avatar James Almer

avcodec/libaomenc: use av_assert0()

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent a123e576
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <aom/aom_encoder.h> #include <aom/aom_encoder.h>
#include <aom/aomcx.h> #include <aom/aomcx.h>
#include "libavutil/avassert.h"
#include "libavutil/base64.h" #include "libavutil/base64.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/mathematics.h" #include "libavutil/mathematics.h"
...@@ -546,7 +547,7 @@ static int queue_frames(AVCodecContext *avctx, AVPacket *pkt_out) ...@@ -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 /* avoid storing the frame when the list is empty and we haven't yet
* provided a frame for output */ * provided a frame for output */
assert(!ctx->coded_frame_list); av_assert0(!ctx->coded_frame_list);
cx_pktcpy(&cx_frame, pkt); cx_pktcpy(&cx_frame, pkt);
size = storeframe(avctx, &cx_frame, pkt_out); size = storeframe(avctx, &cx_frame, pkt_out);
if (size < 0) if (size < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment