From 2826dcff8f8e3b95dae7a1bbfb5c6809ca7b2aa2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 4 Nov 2013 19:59:03 +0100 Subject: vdpau: drop required/deprecated access to a libavcodec struct field Before the bitstream_buffers field was deprecated, you had to free it, otherwise you would leak memory. (Although vdpau.c uses a new API, they managed to introduce a new deprecation this quickly. This is a complaint.) This introduces a memory leak of 12 bytes per file on every file on some _older_ libavcodec versions. This is minor enough that I don't care. --- video/decode/vdpau.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/video/decode/vdpau.c b/video/decode/vdpau.c index 756c8e4d8e..076dbb9da8 100644 --- a/video/decode/vdpau.c +++ b/video/decode/vdpau.c @@ -194,9 +194,6 @@ static void uninit(struct lavc_ctx *ctx) if (p->context.decoder != VDP_INVALID_HANDLE) p->vdp->decoder_destroy(p->context.decoder); - // Free bitstream buffers allocated by libavcodec - av_freep(&p->context.bitstream_buffers); - talloc_free(p); ctx->hwdec_priv = NULL; -- cgit v1.2.3