[FFmpeg-cvslog] libvpxenc: switch to av_assert

Michael Niedermayer git at videolan.org
Wed Jul 25 21:39:13 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jul 25 21:35:48 2012 +0200| [9746f87f154029ed5866cbc02ba0d57f5b5c283f] | committer: Michael Niedermayer

libvpxenc: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/libvpxenc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index f9180f0..ade7f41 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -30,6 +30,7 @@
 
 #include "avcodec.h"
 #include "internal.h"
+#include "libavutil/avassert.h"
 #include "libavutil/base64.h"
 #include "libavutil/mathematics.h"
 #include "libavutil/opt.h"
@@ -447,7 +448,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, coded_frame);
                 if (size < 0)



More information about the ffmpeg-cvslog mailing list