wmv2enc: fix rounding flag.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 19 Jun 2012 19:35:32 +0000 (21:35 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 19 Jun 2012 19:38:18 +0000 (21:38 +0200)
Fixes Ticket1467

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegvideo_enc.c

index a2dec63..f3f7162 100644 (file)
@@ -3246,6 +3246,7 @@ static int encode_picture(MpegEncContext *s, int picture_number)
         for(i=0; i<s->mb_stride*s->mb_height; i++)
             s->mb_type[i]= CANDIDATE_MB_TYPE_INTRA;
 //printf("Scene change detected, encoding as I Frame %d %d\n", s->current_picture.mb_var_sum, s->current_picture.mc_mb_var_sum);
+        if(s->msmpeg4_version >= 3) s->no_rounding=1;
     }
 
     if(!s->umvplus){