Commit 314fd505 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Avcodec: set the Dsp flags for the encoders too

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7fa3799a
......@@ -316,7 +316,13 @@ int OpenEncoder( vlc_object_t *p_this )
p_sys->p_context->codec_id = p_sys->p_codec->id;
p_context->debug = var_InheritInteger( p_enc, "avcodec-debug" );
p_context->opaque = (void *)p_this;
p_context->dsp_mask = GetVlcDspMask(); /* set CPU capabilities */
/* set CPU capabilities */
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( 51, 25, 0 )
av_set_cpu_flags_mask( INT_MAX & ~GetVlcDspMask() );
#else
p_context->dsp_mask = GetVlcDspMask();
#endif
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" );
......
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