[vlc-commits] commit: Always use direct rendering with H264 in avcodec (close #3380). ( Laurent Aimar )

git version control git at videolan.org
Thu Mar 4 20:34:37 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Mar  4 20:07:23 2010 +0100| [11a72334588b61d41b3858c79b00fc89a8d23a7d] | committer: Laurent Aimar 

Always use direct rendering with H264 in avcodec (close #3380).

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

 modules/codec/avcodec/video.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 3ac6474..e3a87dc 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -921,12 +921,9 @@ static int ffmpeg_GetFrameBuf( struct AVCodecContext *p_context,
         }
         return 0;
     }
-    else if( !p_sys->b_direct_rendering ||
-             ( p_sys->i_codec_id == CODEC_ID_H264 && p_ff_pic->reference ) )
+    else if( !p_sys->b_direct_rendering )
     {
-        /* Not much to do in indirect rendering mode.
-         * XXX We also do not allow direct rendering with H264 reference frames
-         * as there can be too many of them. */
+        /* Not much to do in indirect rendering mode. */
         return avcodec_default_get_buffer( p_context, p_ff_pic );
     }
 



More information about the vlc-commits mailing list