Mercurial > libavcodec.hg
diff svq1dec.c @ 6481:493dc59d469a libavcodec
add FF_ prefix to all (frame)_TYPE usage
author | aurel |
---|---|
date | Sun, 09 Mar 2008 23:31:02 +0000 |
parents | b79673718ed8 |
children | 48759bfbd073 |
line wrap: on
line diff
--- a/svq1dec.c Sun Mar 09 17:05:19 2008 +0000 +++ b/svq1dec.c Sun Mar 09 23:31:02 2008 +0000 @@ -575,7 +575,7 @@ if(s->pict_type==4) return -1; - if (s->pict_type == I_TYPE) { + if (s->pict_type == FF_I_TYPE) { /* unknown fields */ if (s->f_code == 0x50 || s->f_code == 0x60) { @@ -678,11 +678,11 @@ //FIXME this avoids some confusion for "B frames" without 2 references //this should be removed after libavcodec can handle more flexible picture types & ordering - if(s->pict_type==B_TYPE && s->last_picture_ptr==NULL) return buf_size; + if(s->pict_type==FF_B_TYPE && s->last_picture_ptr==NULL) return buf_size; - if(avctx->hurry_up && s->pict_type==B_TYPE) return buf_size; - if( (avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type==B_TYPE) - ||(avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type!=I_TYPE) + if(avctx->hurry_up && s->pict_type==FF_B_TYPE) return buf_size; + if( (avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type==FF_B_TYPE) + ||(avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type!=FF_I_TYPE) || avctx->skip_frame >= AVDISCARD_ALL) return buf_size; @@ -705,13 +705,13 @@ current = s->current_picture.data[i]; - if(s->pict_type==B_TYPE){ + if(s->pict_type==FF_B_TYPE){ previous = s->next_picture.data[i]; }else{ previous = s->last_picture.data[i]; } - if (s->pict_type == I_TYPE) { + if (s->pict_type == FF_I_TYPE) { /* keyframe */ for (y=0; y < height; y+=16) { for (x=0; x < width; x+=16) {