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

Git pushed a commit to branch master
in repository ffmpeg.

commit e7782ef185fefcc4ec087b98cedc7eee60d36100
Author:     Lynne <[email protected]>
AuthorDate: Sun Sep 20 22:58:23 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Sun Sep 20 22:59:48 2026 +0900

    apv_decode: allocate the hwaccel private data unconditionally
    
    ff_hwaccel_frame_priv_alloc() is a no-op without a hwaccel, so the
    check around it is redundant.
---
 libavcodec/apv_decode.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/libavcodec/apv_decode.c b/libavcodec/apv_decode.c
index 05ce42da44..cde6593602 100644
--- a/libavcodec/apv_decode.c
+++ b/libavcodec/apv_decode.c
@@ -383,11 +383,9 @@ static int apv_decode(AVCodecContext *avctx, AVFrame 
*output,
 
     apv_derive_tile_info(tile_info, &input->frame_header);
 
-    if (avctx->hwaccel) {
-        err = ff_hwaccel_frame_priv_alloc(avctx, 
&apv->hwaccel_picture_private);
-        if (err < 0)
-            return err;
-    }
+    err = ff_hwaccel_frame_priv_alloc(avctx, &apv->hwaccel_picture_private);
+    if (err < 0)
+        return err;
 
     ff_thread_finish_setup(avctx);
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to