diff options
author | Reimar Döffinger <[email protected]> | 2012-07-21 13:22:04 +0200 |
---|---|---|
committer | Derek Buitenhuis <[email protected]> | 2012-07-23 11:35:21 -0400 |
commit | 6c8fdfc5e51902c6011d450b7ddc94bd1fe1030e (patch) | |
tree | c434afe9b416a703b71134c34b4adc69c2bb013d /libavformat/rtmpcrypt.c | |
parent | 61884b9d1b6be16dbbfae6700cf8628e037ea28b (diff) |
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 <[email protected]>
Signed-off-by: Derek Buitenhuis <[email protected]>
Diffstat (limited to 'libavformat/rtmpcrypt.c')
0 files changed, 0 insertions, 0 deletions