[FFmpeg-cvslog] huffyuv: switch to av_assert
Michael Niedermayer
git at videolan.org
Mon Jun 18 22:03:39 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun 18 21:44:48 2012 +0200| [4b5c7d4d9af92819a8523cd01c175c93f150529e] | committer: Michael Niedermayer
huffyuv: switch to av_assert
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b5c7d4d9af92819a8523cd01c175c93f150529e
---
libavcodec/huffyuv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c
index cb7929b..4470f45 100644
--- a/libavcodec/huffyuv.c
+++ b/libavcodec/huffyuv.c
@@ -447,7 +447,7 @@ static av_cold int common_init(AVCodecContext *avctx){
s->width= avctx->width;
s->height= avctx->height;
- assert(s->width>0 && s->height>0);
+ av_assert1(s->width>0 && s->height>0);
return 0;
}
@@ -593,7 +593,7 @@ static int store_table(HYuvContext *s, const uint8_t *len, uint8_t *buf){
for(; i<256 && len[i]==val && repeat<255; i++)
repeat++;
- assert(val < 32 && val >0 && repeat<256 && repeat>0);
+ av_assert0(val < 32 && val >0 && repeat<256 && repeat>0);
if(repeat>7){
buf[index++]= val;
buf[index++]= repeat;
More information about the ffmpeg-cvslog
mailing list