]> git.sesse.net Git - vlc/commitdiff
Always use direct rendering with H264 in avcodec (close #3380).
authorLaurent Aimar <fenrir@videolan.org>
Thu, 4 Mar 2010 19:07:23 +0000 (20:07 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 4 Mar 2010 19:08:10 +0000 (20:08 +0100)
modules/codec/avcodec/video.c

index 3ac6474c771c0c0e92a58f0fbadb5b51845d13d4..e3a87dc3e1ec250fee40584701de43dfe6d4148f 100644 (file)
@@ -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 );
     }