This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit dba0b078c810e6d62f14758b23f6e56274b69955
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Wed Apr 8 18:28:56 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Fri May 1 23:59:06 2026 +0000

    avcodec/vaapi_av1: reorder functions to avoid fwd decl
---
 libavcodec/vaapi_av1.c | 29 +++++++++++++----------------
 1 file changed, 13 insertions(+), 16 deletions(-)

diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c
index 0e1b8c60e0..0d096401eb 100644
--- a/libavcodec/vaapi_av1.c
+++ b/libavcodec/vaapi_av1.c
@@ -74,7 +74,19 @@ static int8_t vaapi_av1_get_bit_depth_idx(AVCodecContext 
*avctx)
     return bit_depth == 8 ? 0 : bit_depth == 10 ? 1 : 2;
 }
 
-static av_cold int vaapi_av1_decode_uninit(AVCodecContext *avctx);
+static av_cold int vaapi_av1_decode_uninit(AVCodecContext *avctx)
+{
+    VAAPIAV1DecContext *ctx = avctx->internal->hwaccel_priv_data;
+
+    av_frame_free(&ctx->tmp_frame);
+
+    for (int i = 0; i < FF_ARRAY_ELEMS(ctx->ref_tab); i++)
+        av_frame_free(&ctx->ref_tab[i].frame);
+
+    av_freep(&ctx->slice_params);
+
+    return ff_vaapi_decode_uninit(avctx);
+}
 
 static av_cold int vaapi_av1_decode_init(AVCodecContext *avctx)
 {
@@ -102,21 +114,6 @@ static av_cold int vaapi_av1_decode_init(AVCodecContext 
*avctx)
     return ret;
 }
 
-static av_cold int vaapi_av1_decode_uninit(AVCodecContext *avctx)
-{
-    VAAPIAV1DecContext *ctx = avctx->internal->hwaccel_priv_data;
-
-    av_frame_free(&ctx->tmp_frame);
-
-    for (int i = 0; i < FF_ARRAY_ELEMS(ctx->ref_tab); i++)
-        av_frame_free(&ctx->ref_tab[i].frame);
-
-    av_freep(&ctx->slice_params);
-
-    return ff_vaapi_decode_uninit(avctx);
-}
-
-
 static int vaapi_av1_start_frame(AVCodecContext *avctx,
                                  av_unused const AVBufferRef *buffer_ref,
                                  av_unused const uint8_t *buffer,

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to