]> git.sesse.net Git - vlc/commitdiff
Revert "avcodec_get_edge_width() was added in libavcodec 52.66.0"
authorRafaël Carré <funman@videolan.org>
Sun, 11 Dec 2011 03:30:46 +0000 (22:30 -0500)
committerRafaël Carré <funman@videolan.org>
Sun, 11 Dec 2011 03:43:59 +0000 (22:43 -0500)
This reverts commit 3c6bb18e81a62e8abb58ecd8b2df8549dea39729.

Revert "avcodec: fix direct rendering with some codecs"

This reverts commit fcc84608b67f3c3567b96604577bfdcc0de45b53.

The issue is not related to EMU_EDGE flag

modules/codec/avcodec/video.c

index 08f53313a2a4bd0be2d6d4a58b9f2d1bb111e513..c26c7a0ef806182f9fc56b9ae06eedfb43020fc4 100644 (file)
@@ -147,14 +147,8 @@ static inline picture_t *ffmpeg_NewPictBuf( decoder_t *p_dec,
 {
     decoder_sys_t *p_sys = p_dec->p_sys;
 
-    unsigned edge = 0;
-#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 52, 66, 0 )
-    if (p_sys->b_direct_rendering)
-        edge = avcodec_get_edge_width();
-#endif
-
-    p_dec->fmt_out.video.i_width = p_context->width + edge;
-    p_dec->fmt_out.video.i_height = p_context->height + edge;
+    p_dec->fmt_out.video.i_width = p_context->width;
+    p_dec->fmt_out.video.i_height = p_context->height;
 
     if( !p_context->width || !p_context->height )
     {