diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-04-29 08:00:03 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-05-01 09:23:19 +0200 |
commit | b2c31710c96fa47d9dcd40b64d39663e8957f683 (patch) | |
tree | e0ab8b571c94fdd27b24bd8dd9e2d1d522fab3c5 /libavcodec/mpegvideo_enc.c | |
parent | 5fccedaa67390ccddd6347c8e1c71b7664558bcd (diff) | |
download | ffmpeg-b2c31710c96fa47d9dcd40b64d39663e8957f683.tar.gz |
lavc: move CODEC_FLAG_NORMALIZE_AQP to mpegvideo
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index a13ff89dfb..a353f198cd 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -780,6 +780,13 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) FF_ENABLE_DEPRECATION_WARNINGS; #endif +#if FF_API_NORMALIZE_AQP + FF_DISABLE_DEPRECATION_WARNINGS + if (avctx->flags & CODEC_FLAG_NORMALIZE_AQP) + s->mpv_flags |= FF_MPV_FLAG_NAQ; + FF_ENABLE_DEPRECATION_WARNINGS; +#endif + if (avctx->b_frame_strategy == 2) { for (i = 0; i < s->max_b_frames + 2; i++) { s->tmp_frames[i] = av_frame_alloc(); |