vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sat Sep 26 
21:09:58 2015 +0300| [85b5b4e05f944ad98859ab3fb1c0ddf36ac887bc] | committer: 
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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=85b5b4e05f944ad98859ab3fb1c0ddf36ac887bc
---

 modules/codec/avcodec/video.c |   13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 1ba047f..5e2ac0c 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -398,16 +398,9 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext 
*p_context,
         p_sys->b_direct_rendering = true;
     }
 
-    if( p_sys->b_direct_rendering )
-    {
-        msg_Dbg( p_dec, "trying to use direct rendering" );
-        p_context->flags |= CODEC_FLAG_EMU_EDGE;
-    }
-    else
-    {
-        msg_Dbg( p_dec, "direct rendering is disabled" );
-    }
-
+#if !LIBAVCODEC_VERSION_CHECK(55, 32, 1, 48, 102)
+    p_context->flags |= CODEC_FLAG_EMU_EDGE;
+#endif
     p_context->get_format = ffmpeg_GetFormat;
     /* Always use our get_buffer wrapper so we can calculate the
      * PTS correctly */

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to