summaryrefslogtreecommitdiff
path: root/libavcodec/vp9.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-03-10 18:03:05 +0100
committerLynne <dev@lynne.ee>2023-05-29 00:41:56 +0200
commitbe07145109074e128bd7a8255d81a2b9fdcdf10b (patch)
tree30e5c99fd5e7b71a747a5d4a9443f528e7dfc1b5 /libavcodec/vp9.c
parent09dc9193ea527f32e473456433c4e0c317a8f513 (diff)
avcodec: add AVHWAccel.free_frame_priv callback
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r--libavcodec/vp9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index d8a31507fa..03883d254b 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -136,7 +136,7 @@ static int vp9_frame_alloc(AVCodecContext *avctx, VP9Frame *f)
const AVHWAccel *hwaccel = avctx->hwaccel;
av_assert0(!f->hwaccel_picture_private);
if (hwaccel->frame_priv_data_size) {
- f->hwaccel_priv_buf = av_buffer_allocz(hwaccel->frame_priv_data_size);
+ f->hwaccel_priv_buf = ff_hwaccel_frame_priv_alloc(avctx, hwaccel);
if (!f->hwaccel_priv_buf)
goto fail;
f->hwaccel_picture_private = f->hwaccel_priv_buf->data;