diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-11-10 10:54:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-11-10 10:54:07 +0000 |
commit | 347ae22ecf3b10b0dd5293bfc3764873fe42b03d (patch) | |
tree | ebfb36c77f3c7ec932b042bc1576dc8395c1be9e /libavcodec/h263dec.c | |
parent | 8cd5be983bf1020c82deff7a63bd8c290ab9bd52 (diff) | |
download | ffmpeg-347ae22ecf3b10b0dd5293bfc3764873fe42b03d.tar.gz |
hurry_up>=5 -> skip everything except header & set pict_type&key_frame
Originally committed as revision 1182 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 8386fcf599..5f80a72d8c 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -525,10 +525,16 @@ retry: fprintf(stderr, "header damaged\n"); return -1; } + + s->avctx->key_frame = (s->pict_type == I_TYPE); + s->avctx->pict_type = s->pict_type; + /* skip b frames if we dont have reference frames */ if(s->num_available_buffers<2 && s->pict_type==B_TYPE) return get_consumed_bytes(s, buf_size); /* skip b frames if we are in a hurry */ if(s->hurry_up && s->pict_type==B_TYPE) return get_consumed_bytes(s, buf_size); + /* skip everything if we are in a hurry>=5 */ + if(s->hurry_up>=5) return get_consumed_bytes(s, buf_size); if(s->next_p_frame_damaged){ if(s->pict_type==B_TYPE) |