Commit 11a72334 authored by Laurent Aimar's avatar Laurent Aimar

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

parent b0313121
......@@ -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 );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment