Make sure ff_init_qscale_tab() is called one way or another when
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 3 Dec 2009 21:38:10 +0000 (21:38 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 3 Dec 2009 21:38:10 +0000 (21:38 +0000)
adaptive quantization is enabled.
Fixes issue509.

Originally committed as revision 20726 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo_enc.c

index 9b4dad4..df4044f 100644 (file)
@@ -2704,6 +2704,8 @@ static int estimate_qp(MpegEncContext *s, int dry_run){
             if (CONFIG_H263_ENCODER)
                 ff_clean_h263_qscales(s);
             break;
+        default:
+            ff_init_qscale_tab(s);
         }
 
         s->lambda= s->lambda_table[0];