aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/truespeech_data.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-07-21 13:22:04 +0200
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-07-23 11:35:21 -0400
commit6c8fdfc5e51902c6011d450b7ddc94bd1fe1030e (patch)
treec434afe9b416a703b71134c34b4adc69c2bb013d /libavcodec/truespeech_data.h
parent61884b9d1b6be16dbbfae6700cf8628e037ea28b (diff)
downloadffmpeg-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/truespeech_data.h')
0 files changed, 0 insertions, 0 deletions