summaryrefslogtreecommitdiff
path: root/libavcodec/vda.c
diff options
context:
space:
mode:
authorSebastien Zwickert <dilaroga@free.fr>2012-08-13 20:17:45 +0200
committerDiego Biurrun <diego@biurrun.de>2012-08-14 12:47:15 +0200
commitcfc680ab3982f5c9e4240a9bb69859a49f420113 (patch)
tree33100931e6ff5bbc3710e98ba034e58acae0e819 /libavcodec/vda.c
parentad08dfd594187d2de40b89d3b15cb8c43751532f (diff)
downloadffmpeg-cfc680ab3982f5c9e4240a9bb69859a49f420113.tar.gz
vda: Reuse the bitstream buffer and reallocate it only if needed
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec/vda.c')
-rw-r--r--libavcodec/vda.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vda.c b/libavcodec/vda.c
index 3c03dcd3e0..d962c61a3b 100644
--- a/libavcodec/vda.c
+++ b/libavcodec/vda.c
@@ -226,6 +226,8 @@ int ff_vda_destroy_decoder(struct vda_context *vda_ctx)
pthread_mutex_destroy(&vda_ctx->queue_mutex);
+ av_freep(&vda_ctx->priv_bitstream);
+
if (kVDADecoderNoErr != status)
return status;