[FFmpeg-devel] [PATCH] zerocodec: fix direct rendering.

Paul B Mahol onemda at gmail.com
Sat Jul 21 13:32:06 CEST 2012


On 7/21/12, Reimar Doeffinger <Reimar.Doeffinger at gmx.de> wrote:
> Set picture type before calling get_buffer.
> This allows the DR application to make better decisions.
> It also fixes a resource leak in case of missing reference frames
> since it would call get_buffer but never release_buffer.
> Also use FFSWAP to ensure that the AVFrame is properly initialized
> in the next get_buffer (in particular that data[0] is NULL).
>
> Signed-off-by: Reimar Doeffinger <Reimar.Doeffinger at gmx.de>
> ---
>  libavcodec/zerocodec.c |   34 +++++++++++++++++-----------------
>  1 file changed, 17 insertions(+), 17 deletions(-)
>

What about reget_buffer()?


More information about the ffmpeg-devel mailing list