diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-12-04 00:38:10 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-12-04 00:38:10 +0300 |
commit | ccc4b918329c8c73bed7faf5429697eae83e3ba9 (patch) | |
tree | b7a322cd58fd1f0ae625c226eb95dcdbf22f9bb5 /libavcodec/mpegvideo_enc.c | |
parent | 9015b095bc2407ebb009c1af0a1d1692ce72c46d (diff) |
Make sure ff_init_qscale_tab() is called one way or another when
adaptive quantization is enabled.
Fixes issue509.
Originally committed as revision 20726 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 9b4dad49ef..df4044f463 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -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]; |