aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ratecontrol.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-04-29 08:00:03 +0200
committerAnton Khirnov <anton@khirnov.net>2014-05-01 09:23:19 +0200
commitb2c31710c96fa47d9dcd40b64d39663e8957f683 (patch)
treee0ab8b571c94fdd27b24bd8dd9e2d1d522fab3c5 /libavcodec/ratecontrol.c
parent5fccedaa67390ccddd6347c8e1c71b7664558bcd (diff)
downloadffmpeg-b2c31710c96fa47d9dcd40b64d39663e8957f683.tar.gz
lavc: move CODEC_FLAG_NORMALIZE_AQP to mpegvideo
Diffstat (limited to 'libavcodec/ratecontrol.c')
-rw-r--r--libavcodec/ratecontrol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index dc7f087dbd..70d9787d0c 100644
--- a/libavcodec/ratecontrol.c
+++ b/libavcodec/ratecontrol.c
@@ -672,7 +672,7 @@ static void adaptive_quantization(MpegEncContext *s, double q)
}
/* handle qmin/qmax clipping */
- if (s->flags & CODEC_FLAG_NORMALIZE_AQP) {
+ if (s->mpv_flags & FF_MPV_FLAG_NAQ) {
float factor = bits_sum / cplx_sum;
for (i = 0; i < s->mb_num; i++) {
float newq = q * cplx_tab[i] / bits_tab[i];
@@ -697,7 +697,7 @@ static void adaptive_quantization(MpegEncContext *s, double q)
float newq = q * cplx_tab[i] / bits_tab[i];
int intq;
- if (s->flags & CODEC_FLAG_NORMALIZE_AQP) {
+ if (s->mpv_flags & FF_MPV_FLAG_NAQ) {
newq *= bits_sum / cplx_sum;
}