diff options
author | Lynne <dev@lynne.ee> | 2022-03-10 18:03:05 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2023-05-29 00:41:56 +0200 |
commit | be07145109074e128bd7a8255d81a2b9fdcdf10b (patch) | |
tree | 30e5c99fd5e7b71a747a5d4a9443f528e7dfc1b5 /libavcodec/av1dec.c | |
parent | 09dc9193ea527f32e473456433c4e0c317a8f513 (diff) |
avcodec: add AVHWAccel.free_frame_priv callback
Diffstat (limited to 'libavcodec/av1dec.c')
-rw-r--r-- | libavcodec/av1dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index 7de6ba0965..3ab1a47d19 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -27,6 +27,7 @@ #include "libavutil/opt.h" #include "avcodec.h" #include "av1_parse.h" +#include "decode.h" #include "av1dec.h" #include "atsc_a53.h" #include "bytestream.h" @@ -865,8 +866,7 @@ static int av1_frame_alloc(AVCodecContext *avctx, AV1Frame *f) if (avctx->hwaccel) { const AVHWAccel *hwaccel = 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(avctx, hwaccel); if (!f->hwaccel_priv_buf) { ret = AVERROR(ENOMEM); goto fail; |