diff options
author | Michael Niedermayer | 2005-07-14 21:39:36 +0000 |
---|---|---|
committer | Michael Niedermayer | 2005-07-14 21:39:36 +0000 |
commit | 8c3eba7c625fb9bf4b6e254b216871cac2b91283 (patch) | |
tree | 5e709f18b895d14f5b10bbe9f6e458a7e98d0e49 /libavcodec/h263dec.c | |
parent | fec9ccb7e6fdc6844b1e2d1bb95436b36f47a412 (diff) |
skip_idct
skip_frame
skip_loop_filter
Originally committed as revision 4440 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index ba105564f2..b51ce5f0c4 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -673,6 +673,10 @@ retry: if(s->last_picture_ptr==NULL && (s->pict_type==B_TYPE || s->dropable)) return get_consumed_bytes(s, buf_size); /* skip b frames if we are in a hurry */ if(avctx->hurry_up && s->pict_type==B_TYPE) return get_consumed_bytes(s, buf_size); + if( (avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type==B_TYPE) + || (avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type!=I_TYPE) + || avctx->skip_frame >= AVDISCARD_ALL) + return get_consumed_bytes(s, buf_size); /* skip everything if we are in a hurry>=5 */ if(avctx->hurry_up>=5) return get_consumed_bytes(s, buf_size); |