Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Zwickert <dilaroga@free.fr>2012-08-13 22:17:45 +0400
committerDiego Biurrun <diego@biurrun.de>2012-08-14 14:47:15 +0400
commitcfc680ab3982f5c9e4240a9bb69859a49f420113 (patch)
tree33100931e6ff5bbc3710e98ba034e58acae0e819 /libavcodec/vda.c
parentad08dfd594187d2de40b89d3b15cb8c43751532f (diff)
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;