diff mpegvideo.c @ 693:b6a7ff92df57 libavcodec

darkness masking (lumi masking does only bright stuff now)
author michaelni
date Tue, 24 Sep 2002 10:53:59 +0000
parents a1c69cb685b3
children 3525da287ee2
line wrap: on
line diff
--- a/mpegvideo.c	Tue Sep 24 09:15:46 2002 +0000
+++ b/mpegvideo.c	Tue Sep 24 10:53:59 2002 +0000
@@ -433,23 +433,24 @@
     } else {
         s->intra_only = 0;
     }
-    
+
     /* ME algorithm */
     if (avctx->me_method == 0)
         /* For compatibility */
         s->me_method = motion_estimation_method;
     else
         s->me_method = avctx->me_method;
-        
+
     /* Fixed QSCALE */
     s->fixed_qscale = (avctx->flags & CODEC_FLAG_QSCALE);
     
     s->adaptive_quant= (   s->avctx->lumi_masking
+                        || s->avctx->dark_masking
                         || s->avctx->temporal_cplx_masking 
                         || s->avctx->spatial_cplx_masking
                         || s->avctx->p_masking)
                        && !s->fixed_qscale;
-    
+
     switch(avctx->codec->id) {
     case CODEC_ID_MPEG1VIDEO:
         s->out_format = FMT_MPEG1;