summaryrefslogtreecommitdiff
path: root/libavcodec/av1dec.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/av1dec.c
parentbe07145109074e128bd7a8255d81a2b9fdcdf10b (diff)
avcodec: add AVHWAccel.flush callback
Diffstat (limited to 'libavcodec/av1dec.c')
-rw-r--r--libavcodec/av1dec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index 3ab1a47d19..7e423427b2 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -1452,6 +1452,9 @@ static void av1_decode_flush(AVCodecContext *avctx)
ff_cbs_fragment_reset(&s->current_obu);
ff_cbs_flush(s->cbc);
+
+ if (avctx->hwaccel && avctx->hwaccel->flush)
+ avctx->hwaccel->flush(avctx);
}
#define OFFSET(x) offsetof(AV1DecContext, x)