Commit 223f96c7 authored by Aurelien Nephtali's avatar Aurelien Nephtali Committed by Jean-Baptiste Kempf

Fix --sout-ffmpeg-codec

Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
(cherry picked from commit 01985075405e84ba650bbed85721c95f2042d04a)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c7fbe3a5
...@@ -203,6 +203,8 @@ int OpenEncoder( vlc_object_t *p_this ) ...@@ -203,6 +203,8 @@ int OpenEncoder( vlc_object_t *p_this )
char *psz_val; char *psz_val;
int i_val; int i_val;
config_ChainParse( p_enc, ENC_CFG_PREFIX, ppsz_enc_options, p_enc->p_cfg );
if( p_enc->fmt_out.i_codec == VLC_CODEC_MP3 ) if( p_enc->fmt_out.i_codec == VLC_CODEC_MP3 )
{ {
i_cat = AUDIO_ES; i_cat = AUDIO_ES;
...@@ -335,8 +337,6 @@ int OpenEncoder( vlc_object_t *p_this ) ...@@ -335,8 +337,6 @@ int OpenEncoder( vlc_object_t *p_this )
p_context->dsp_mask |= AV_CPU_FLAG_SSE2; p_context->dsp_mask |= AV_CPU_FLAG_SSE2;
} }
config_ChainParse( p_enc, ENC_CFG_PREFIX, ppsz_enc_options, p_enc->p_cfg );
p_sys->i_key_int = var_GetInteger( p_enc, ENC_CFG_PREFIX "keyint" ); p_sys->i_key_int = var_GetInteger( p_enc, ENC_CFG_PREFIX "keyint" );
p_sys->i_b_frames = var_GetInteger( p_enc, ENC_CFG_PREFIX "bframes" ); p_sys->i_b_frames = var_GetInteger( p_enc, ENC_CFG_PREFIX "bframes" );
p_sys->i_vtolerance = var_GetInteger( p_enc, ENC_CFG_PREFIX "vt" ) * 1000; p_sys->i_vtolerance = var_GetInteger( p_enc, ENC_CFG_PREFIX "vt" ) * 1000;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment