ffmenc: switch to av_assert
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 18 Aug 2012 03:02:58 +0000 (05:02 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 18 Aug 2012 03:02:58 +0000 (05:02 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/ffmenc.c

index 6ce69cf..3b96c73 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include <assert.h>
-
 #include "libavutil/intreadwrite.h"
 #include "libavutil/intfloat.h"
 #include "libavutil/avassert.h"
@@ -37,7 +35,7 @@ static void flush_packet(AVFormatContext *s)
     fill_size = ffm->packet_end - ffm->packet_ptr;
     memset(ffm->packet_ptr, 0, fill_size);
 
-    assert(avio_tell(pb) % ffm->packet_size == 0);
+    av_assert1(avio_tell(pb) % ffm->packet_size == 0);
 
     /* put header */
     avio_wb16(pb, PACKET_ID);