[FFmpeg-cvslog] x86/mpegvideoenc_template: use av_assert

Michael Niedermayer git at videolan.org
Fri Nov 23 18:17:12 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 23 17:57:22 2012 +0100| [533a8b2a7d3f6daa82e85eeb7329408160fed496] | committer: Michael Niedermayer

x86/mpegvideoenc_template: use av_assert

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

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

 libavcodec/x86/mpegvideoenc_template.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/x86/mpegvideoenc_template.c b/libavcodec/x86/mpegvideoenc_template.c
index d874f39..47c3b43 100644
--- a/libavcodec/x86/mpegvideoenc_template.c
+++ b/libavcodec/x86/mpegvideoenc_template.c
@@ -100,7 +100,7 @@ static int RENAME(dct_quantize)(MpegEncContext *s,
     const uint16_t *qmat, *bias;
     LOCAL_ALIGNED_16(int16_t, temp_block, [64]);
 
-    assert((7&(int)(&temp_block[0])) == 0); //did gcc align it correctly?
+    av_assert2((7&(int)(&temp_block[0])) == 0); //did gcc align it correctly?
 
     //s->fdct (block);
     RENAMEl(ff_fdct) (block); //cannot be anything else ...



More information about the ffmpeg-cvslog mailing list