On Sun, Jul 22, 2012 at 10:22:29PM -0400, Derek Buitenhuis wrote:
> From: Reimar Döffinger <[email protected]>
> 
> 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 Döffinger <[email protected]>
> ---
>  libavcodec/zerocodec.c |   34 +++++++++++++++++-----------------
>  1 file changed, 17 insertions(+), 17 deletions(-)

LGTM
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to