aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp8.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/vp8.c
parent09dc9193ea527f32e473456433c4e0c317a8f513 (diff)
downloadffmpeg-be07145109074e128bd7a8255d81a2b9fdcdf10b.tar.gz
avcodec: add AVHWAccel.free_frame_priv callback
Diffstat (limited to 'libavcodec/vp8.c')
-rw-r--r--libavcodec/vp8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 2ab06c8293..b410e0eb79 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -109,7 +109,7 @@ static int vp8_alloc_frame(VP8Context *s, VP8Frame *f, int ref)
if (s->avctx->hwaccel) {
const AVHWAccel *hwaccel = s->avctx->hwaccel;
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(s->avctx, hwaccel);
if (!f->hwaccel_priv_buf)
goto fail;
f->hwaccel_picture_private = f->hwaccel_priv_buf->data;