From: Laurent Aimar Date: Thu, 4 Mar 2010 19:07:23 +0000 (+0100) Subject: Always use direct rendering with H264 in avcodec (close #3380). X-Git-Tag: 1.1.0-pre1~516 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=11a72334588b61d41b3858c79b00fc89a8d23a7d;p=vlc Always use direct rendering with H264 in avcodec (close #3380). --- diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c index 3ac6474c77..e3a87dc3e1 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 ); }