diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-07-21 13:22:04 +0200 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2012-07-23 11:35:21 -0400 |
commit | 6c8fdfc5e51902c6011d450b7ddc94bd1fe1030e (patch) | |
tree | c434afe9b416a703b71134c34b4adc69c2bb013d /libavcodec/libfaac.c | |
parent | 61884b9d1b6be16dbbfae6700cf8628e037ea28b (diff) | |
download | ffmpeg-6c8fdfc5e51902c6011d450b7ddc94bd1fe1030e.tar.gz |
zerocodec: fix direct rendering.
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 <Reimar.Doeffinger@gmx.de>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/libfaac.c')
0 files changed, 0 insertions, 0 deletions