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/vp8.c | |
parent | be07145109074e128bd7a8255d81a2b9fdcdf10b (diff) | |
download | ffmpeg-6733a1a456b1720ec58f83c21352d54406229102.tar.gz |
avcodec: add AVHWAccel.flush callback
Diffstat (limited to 'libavcodec/vp8.c')
-rw-r--r-- | libavcodec/vp8.c | 3 |
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) |