diff mpegvideo.c @ 345:e05b357a398a libavcodec

export mbskip_table for direct rendering add hurry_up support
author michaelni
date Sat, 27 Apr 2002 13:12:57 +0000
parents 9f6071a87e17
children 3c5266cda02d
line wrap: on
line diff
--- a/mpegvideo.c	Sat Apr 27 12:30:26 2002 +0000
+++ b/mpegvideo.c	Sat Apr 27 13:12:57 2002 +0000
@@ -1145,6 +1145,9 @@
 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))