summaryrefslogtreecommitdiffstats
path: root/libavcodec/pthread.c
diff options
context:
space:
mode:
authorReimar Döffinger <[email protected]>2012-07-21 13:22:04 +0200
committerReimar Döffinger <[email protected]>2012-07-21 21:11:37 +0200
commit313d1981adc07b183b47ea156c14fd04e7a1a034 (patch)
tree10dba3857c86e6d2c4f879c0665a9311e41538c8 /libavcodec/pthread.c
parenta36f19e94210fa0732f7eea6f38aae7306670520 (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]>
Diffstat (limited to 'libavcodec/pthread.c')
0 files changed, 0 insertions, 0 deletions