simplify
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Dec 2006 15:46:32 +0000 (15:46 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Dec 2006 15:46:32 +0000 (15:46 +0000)
Originally committed as revision 7347 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo.c

index 839c2512ba40a35651d1efdc828c20a33b57de97..a122b89004451117054d7cdfbd39d41c027dd4c0 100644 (file)
@@ -4350,7 +4350,7 @@ static av_always_inline void encode_mb_internal(MpegEncContext *s, int motion_x,
                     if(!s->mb_intra){
                         if(s->pict_type == B_TYPE){
                             if(s->dquant&1)
-                                s->dquant= (s->dquant/2)*2;
+                                s->dquant= 0;
                             if(s->mv_dir&MV_DIRECT)
                                 s->dquant= 0;
                         }