Commit 85b5b4e0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec: always emulate edges

The performance gains from not emulating edges was low if any, if not
negative. In any case, this was for non-DR cases only, so so much for
performance...

Also do not bother setting the flag at all with newer versions as it
was deprecated, and the underlying feature is always on.
parent 1e66f3f6
...@@ -398,16 +398,9 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context, ...@@ -398,16 +398,9 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
p_sys->b_direct_rendering = true; p_sys->b_direct_rendering = true;
} }
if( p_sys->b_direct_rendering ) #if !LIBAVCODEC_VERSION_CHECK(55, 32, 1, 48, 102)
{ p_context->flags |= CODEC_FLAG_EMU_EDGE;
msg_Dbg( p_dec, "trying to use direct rendering" ); #endif
p_context->flags |= CODEC_FLAG_EMU_EDGE;
}
else
{
msg_Dbg( p_dec, "direct rendering is disabled" );
}
p_context->get_format = ffmpeg_GetFormat; p_context->get_format = ffmpeg_GetFormat;
/* Always use our get_buffer wrapper so we can calculate the /* Always use our get_buffer wrapper so we can calculate the
* PTS correctly */ * PTS correctly */
......
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