diff options
author | wm4 <wm4@nowhere> | 2013-11-04 19:59:03 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-04 19:59:03 +0100 |
commit | 2826dcff8f8e3b95dae7a1bbfb5c6809ca7b2aa2 (patch) | |
tree | 002eb23d1eed9a5f2cb240eca781bc3b67a6c173 /video | |
parent | 859964e0db5916f346534b9945e2b884f0cf082f (diff) | |
download | mpv-2826dcff8f8e3b95dae7a1bbfb5c6809ca7b2aa2.tar.bz2 mpv-2826dcff8f8e3b95dae7a1bbfb5c6809ca7b2aa2.tar.xz |
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.
Diffstat (limited to 'video')
-rw-r--r-- | video/decode/vdpau.c | 3 |
1 files changed, 0 insertions, 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; |