diff options
author | Lynne <dev@lynne.ee> | 2023-01-06 03:32:56 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2023-05-29 00:41:57 +0200 |
commit | 6733a1a456b1720ec58f83c21352d54406229102 (patch) | |
tree | 3e8e888e06eb1cf6181274729ca2cf271f9fe1c6 /libavcodec/vp9.c | |
parent | be07145109074e128bd7a8255d81a2b9fdcdf10b (diff) |
avcodec: add AVHWAccel.flush callback
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r-- | libavcodec/vp9.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 03883d254b..4f704ec0dd 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -1801,6 +1801,9 @@ static void vp9_decode_flush(AVCodecContext *avctx) vp9_frame_unref(avctx, &s->s.frames[i]); for (i = 0; i < 8; i++) ff_thread_release_ext_buffer(avctx, &s->s.refs[i]); + + if (avctx->hwaccel && avctx->hwaccel->flush) + avctx->hwaccel->flush(avctx); } static av_cold int vp9_decode_init(AVCodecContext *avctx) |