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:
authorAnton Khirnov <anton@khirnov.net>2017-10-13 19:59:19 +0300
committerTimo Rothenpieler <timo@rothenpieler.org>2017-11-10 21:48:09 +0300
commit81c021c6a2d7848c31984d65f225ba54bdd6f560 (patch)
treeea25e26b76fcadc8ff558ee1be3e2a0dc1cde7c0 /libavcodec/decode.c
parent7fa64514c8d2ec4d3dcb5f194511609ddcc288e6 (diff)
decode: add a per-frame private data for hwaccel use
This will be useful in the CUVID hwaccel. It should also eventually replace current decoder-specific mechanisms used by various other hwaccels. Merges Libav commit 704311b2946d74a80f65906961cd9baaa18683a3.
Diffstat (limited to 'libavcodec/decode.c')
-rw-r--r--libavcodec/decode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 8b03f61a22..44b874d4f8 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -1581,6 +1581,9 @@ static void decode_data_free(void *opaque, uint8_t *data)
if (fdd->post_process_opaque_free)
fdd->post_process_opaque_free(fdd->post_process_opaque);
+ if (fdd->hwaccel_priv_free)
+ fdd->hwaccel_priv_free(fdd->hwaccel_priv);
+
av_freep(&fdd);
}