Commit 6c8fdfc5 authored by Committed by Derek BuitenhuisBrowse files
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 is NULL). Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Derek Buitenhuis <email@example.com>
Showing with 17 additions and 17 deletions