aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp8.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2023-01-06 03:32:56 +0100
committerLynne <dev@lynne.ee>2023-05-29 00:41:57 +0200
commit6733a1a456b1720ec58f83c21352d54406229102 (patch)
tree3e8e888e06eb1cf6181274729ca2cf271f9fe1c6 /libavcodec/vp8.c
parentbe07145109074e128bd7a8255d81a2b9fdcdf10b (diff)
downloadffmpeg-6733a1a456b1720ec58f83c21352d54406229102.tar.gz
avcodec: add AVHWAccel.flush callback
Diffstat (limited to 'libavcodec/vp8.c')
-rw-r--r--libavcodec/vp8.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index b410e0eb79..50afe19b7a 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -167,6 +167,9 @@ static void vp8_decode_flush_impl(AVCodecContext *avctx, int free_mem)
if (free_mem)
free_buffers(s);
+
+ if (avctx->hwaccel && avctx->hwaccel->flush)
+ avctx->hwaccel->flush(avctx);
}
static void vp8_decode_flush(AVCodecContext *avctx)