changeset 10637:afd44c3040f5 libavcodec

Make sure ff_init_qscale_tab() is called one way or another when adaptive quantization is enabled. Fixes issue509.
author michael
date Thu, 03 Dec 2009 21:38:10 +0000
parents 703cfed31320
children 40ff9c7958da
files mpegvideo_enc.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo_enc.c	Thu Dec 03 21:36:58 2009 +0000
+++ b/mpegvideo_enc.c	Thu Dec 03 21:38:10 2009 +0000
@@ -2704,6 +2704,8 @@
             if (CONFIG_H263_ENCODER)
                 ff_clean_h263_qscales(s);
             break;
+        default:
+            ff_init_qscale_tab(s);
         }
 
         s->lambda= s->lambda_table[0];