Commit 7fa3799a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Kill a deprecation warning

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6eda4e0c
...@@ -328,9 +328,12 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -328,9 +328,12 @@ static int OpenDecoder( vlc_object_t *p_this )
return VLC_ENOMEM; return VLC_ENOMEM;
p_context->debug = var_InheritInteger( p_dec, "avcodec-debug" ); p_context->debug = var_InheritInteger( p_dec, "avcodec-debug" );
p_context->opaque = (void *)p_this; 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 ) #if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( 51, 25, 0 )
av_set_cpu_flags_mask( INT_MAX & ~p_context->dsp_mask ); av_set_cpu_flags_mask( INT_MAX & ~GetVlcDspMask() );
#else
p_context->dsp_mask = GetVlcDspMask();
#endif #endif
p_dec->b_need_packetized = true; p_dec->b_need_packetized = true;
......
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