[vlc-commits] avcodec: encoder: Fix a few deprecated options usage
Hugo Beauzée-Luyssen
git at videolan.org
Tue Apr 11 09:57:11 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Apr 11 09:56:14 2017 +0200| [032ba19a41ef27a209c157bc8e7e3b706bbc8579] | committer: Hugo Beauzée-Luyssen
avcodec: encoder: Fix a few deprecated options usage
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=032ba19a41ef27a209c157bc8e7e3b706bbc8579
---
modules/codec/avcodec/encoder.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 71e9ab341c..c2ef832c49 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -611,7 +611,6 @@ int OpenEncoder( vlc_object_t *p_this )
p_context->gop_size = p_sys->i_key_int;
p_context->max_b_frames =
VLC_CLIP( p_sys->i_b_frames, 0, FF_MAX_B_FRAMES );
- p_context->b_frame_strategy = 0;
if( !p_context->max_b_frames &&
( p_enc->fmt_out.i_codec == VLC_CODEC_MPGV ||
p_enc->fmt_out.i_codec == VLC_CODEC_MP2V ) )
@@ -648,7 +647,7 @@ int OpenEncoder( vlc_object_t *p_this )
if ( p_sys->f_i_quant_factor != 0.f )
p_context->i_quant_factor = p_sys->f_i_quant_factor;
- p_context->noise_reduction = p_sys->i_noise_reduction;
+ add_av_option_int( p_enc, &options, "noise_reduction", p_sys->i_noise_reduction );
if ( p_sys->b_mpeg4_matrix )
{
@@ -658,7 +657,7 @@ int OpenEncoder( vlc_object_t *p_this )
if ( p_sys->b_pre_me )
{
- p_context->pre_me = 1;
+ add_av_option_int( p_enc, &options, "mepre", 1 );
p_context->me_pre_cmp = FF_CMP_CHROMA;
}
More information about the vlc-commits
mailing list