[FFmpeg-cvslog] ffmenc: use av_assert

Michael Niedermayer git at videolan.org
Sat Jun 16 18:16:24 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun 16 17:59:01 2012 +0200| [0354412aa3722a29e9842369fb718f1d22e7d693] | committer: Michael Niedermayer

ffmenc: use av_assert

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

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

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

diff --git a/libavformat/ffmenc.c b/libavformat/ffmenc.c
index 84ed697..74807d9 100644
--- a/libavformat/ffmenc.c
+++ b/libavformat/ffmenc.c
@@ -21,6 +21,7 @@
 
 #include "libavutil/intreadwrite.h"
 #include "libavutil/intfloat.h"
+#include "libavutil/avassert.h"
 #include "avformat.h"
 #include "internal.h"
 #include "ffm.h"
@@ -189,7 +190,7 @@ static int ffm_write_header(AVFormatContext *s)
     /* init packet mux */
     ffm->packet_ptr = ffm->packet;
     ffm->packet_end = ffm->packet + ffm->packet_size - FFM_HEADER_SIZE;
-    assert(ffm->packet_end >= ffm->packet);
+    av_assert0(ffm->packet_end >= ffm->packet);
     ffm->frame_offset = 0;
     ffm->dts = 0;
     ffm->first_packet = 1;



More information about the ffmpeg-cvslog mailing list