From cfc680ab3982f5c9e4240a9bb69859a49f420113 Mon Sep 17 00:00:00 2001 From: Sebastien Zwickert Date: Mon, 13 Aug 2012 20:17:45 +0200 Subject: vda: Reuse the bitstream buffer and reallocate it only if needed Signed-off-by: Diego Biurrun --- libavcodec/vda.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/vda.c') 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; -- cgit v1.2.3