aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/decode.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-04-28 11:48:04 +0200
committerLynne <dev@lynne.ee>2023-05-29 00:41:27 +0200
commit3d2e1aa3242d6c4dc2b3a004b316921ce7e0ba79 (patch)
treeb77e0e6ddca339e1b6bfb7594c3801fd3f2bd472 /libavcodec/decode.c
parenta4611e3170b7f5240f719465d8033ab33a34cd70 (diff)
downloadffmpeg-3d2e1aa3242d6c4dc2b3a004b316921ce7e0ba79.tar.gz
lavc/decode: stop duplicating code from hwaccel_uninit()
Diffstat (limited to 'libavcodec/decode.c')
-rw-r--r--libavcodec/decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 18d85cf46f..d75f831a74 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -1145,7 +1145,7 @@ static int hwaccel_init(AVCodecContext *avctx,
return 0;
}
-static void hwaccel_uninit(AVCodecContext *avctx)
+void ff_hwaccel_uninit(AVCodecContext *avctx)
{
if (avctx->hwaccel && avctx->hwaccel->uninit)
avctx->hwaccel->uninit(avctx);
@@ -1184,7 +1184,7 @@ int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt)
for (;;) {
// Remove the previous hwaccel, if there was one.
- hwaccel_uninit(avctx);
+ ff_hwaccel_uninit(avctx);
user_choice = avctx->get_format(avctx, choices);
if (user_choice == AV_PIX_FMT_NONE) {