1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

huffyuv: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-06-18 21:44:48 +02:00
parent da42f56985
commit 4b5c7d4d9a

View File

@ -447,7 +447,7 @@ static av_cold int common_init(AVCodecContext *avctx){
s->width= avctx->width; s->width= avctx->width;
s->height= avctx->height; s->height= avctx->height;
assert(s->width>0 && s->height>0); av_assert1(s->width>0 && s->height>0);
return 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++) for(; i<256 && len[i]==val && repeat<255; i++)
repeat++; repeat++;
assert(val < 32 && val >0 && repeat<256 && repeat>0); av_assert0(val < 32 && val >0 && repeat<256 && repeat>0);
if(repeat>7){ if(repeat>7){
buf[index++]= val; buf[index++]= val;
buf[index++]= repeat; buf[index++]= repeat;