diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-04-29 10:00:03 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-05-01 11:24:18 +0400 |
commit | a2941c8cb216bdc144953cace64973f5600ffa2d (patch) | |
tree | debc8a02c1758e32cf1cd061fe3cc5d533b85f47 /libavcodec/mpegvideo_enc.c | |
parent | 6484149158b6fc6d13d2b2ef84cb26a2d3275400 (diff) |
lavc: move CODEC_FLAG_MV0 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 a353f198cd..c6b7cc8316 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -787,6 +787,13 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) FF_ENABLE_DEPRECATION_WARNINGS; #endif +#if FF_API_MV0 + FF_DISABLE_DEPRECATION_WARNINGS + if (avctx->flags & CODEC_FLAG_MV0) + s->mpv_flags |= FF_MPV_FLAG_MV0; + 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(); |