aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-04-27 13:12:57 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-04-27 13:12:57 +0000
commit2417652e9fbb2a4282909217fd53693bd7b7e11c (patch)
treeca0c08ed7a1db11cfa9d35225fd61946c53292ca /libavcodec/h263dec.c
parentd7e9533aa06f4073a27812349b35ba5fede11ca1 (diff)
downloadffmpeg-2417652e9fbb2a4282909217fd53693bd7b7e11c.tar.gz
export mbskip_table for direct rendering
add hurry_up support Originally committed as revision 424 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 796e5ea615..ebd8ff279c 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -74,6 +74,7 @@ static int h263_decode_init(AVCodecContext *avctx)
return -1;
}
s->codec_id= avctx->codec->id;
+ avctx->mbskip_table= s->mbskip_table;
/* for h263, we allocate the images after having read the header */
if (avctx->codec->id != CODEC_ID_H263 && avctx->codec->id != CODEC_ID_MPEG4)
@@ -108,6 +109,8 @@ static int h263_decode_frame(AVCodecContext *avctx,
printf("*****frame %d size=%d\n", avctx->frame_number, buf_size);
printf("bytes=%x %x %x %x\n", buf[0], buf[1], buf[2], buf[3]);
#endif
+
+ s->hurry_up= avctx->hurry_up;
/* no supplementary picture */
if (buf_size == 0) {
@@ -154,6 +157,8 @@ static int h263_decode_frame(AVCodecContext *avctx,
return -1;
/* skip b frames if we dont have reference frames */
if(s->num_available_buffers<2 && s->pict_type==B_TYPE) return 0;
+ /* skip b frames if we are in a hurry */
+ if(s->hurry_up && s->pict_type==B_TYPE) return 0;
MPV_frame_start(s);