[FFmpeg-cvslog] ffmenc: switch to av_assert

Michael Niedermayer git at videolan.org
Sat Aug 18 05:06:31 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug 18 05:02:58 2012 +0200| [7e49474aa02e93ba2d80b330cba1ec38f4c4f3ee] | committer: Michael Niedermayer

ffmenc: switch to av_assert

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

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

 libavformat/ffmenc.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavformat/ffmenc.c b/libavformat/ffmenc.c
index 6ce69cf..3b96c73 100644
--- a/libavformat/ffmenc.c
+++ b/libavformat/ffmenc.c
@@ -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);



More information about the ffmpeg-cvslog mailing list