aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.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/mpegvideo.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/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index b216113c41..37fb97e68a 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1145,6 +1145,9 @@ static inline void put_dct(MpegEncContext *s,
static inline void add_dct(MpegEncContext *s,
DCTELEM *block, int i, UINT8 *dest, int line_size)
{
+ /* skip dequant / idct if we are really late ;) */
+ if(s->hurry_up>1) return;
+
if (s->block_last_index[i] >= 0) {
if (!s->mpeg2)
if(s->encoding || (!s->h263_msmpeg4))