[FFmpeg-cvslog] swfenc: use av_assert

Michael Niedermayer git at videolan.org
Thu Jun 7 21:35:35 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jun  7 21:30:07 2012 +0200| [a21c212681ad4493c2b95d166947d6366cd62524] | committer: Michael Niedermayer

swfenc: use av_assert

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

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

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

diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index 6a3cdad..f56c580 100644
--- a/libavformat/swfenc.c
+++ b/libavformat/swfenc.c
@@ -21,6 +21,7 @@
  */
 
 #include "libavcodec/put_bits.h"
+#include "libavutil/avassert.h"
 #include "avformat.h"
 #include "swf.h"
 
@@ -56,7 +57,7 @@ static void put_swf_end_tag(AVFormatContext *s)
         avio_wl16(pb, (tag << 6) | 0x3f);
         avio_wl32(pb, tag_len - 4);
     } else {
-        assert(tag_len < 0x3f);
+        av_assert0(tag_len < 0x3f);
         avio_wl16(pb, (tag << 6) | tag_len);
     }
     avio_seek(pb, pos, SEEK_SET);



More information about the ffmpeg-cvslog mailing list