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

Git pushed a commit to branch release/8.1
in repository ffmpeg.

commit 2e6a79685c0b638103b49d0962bab7c4a05fcae6
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Nov 30 02:27:04 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Mon Nov 30 06:21:01 2026 +0100

    avfilter/vf_transpose_npp: set the size of the frames taken from the pool
    
    The output frames after the first come from a pool whose frames have
    the width and height aligned to 32. ff_filter_frame() rejects frames
    whose size differs from their link unless the receiving filter handles
    such frames, so the filter following transpose_npp could fail from the
    second frame on unless both dimensions were multiples of 32.
    
    Set the size as vf_scale_npp does.
    
    Fixes: #21153
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_transpose_npp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/vf_transpose_npp.c b/libavfilter/vf_transpose_npp.c
index 2315b1043a..b9ffdaa59d 100644
--- a/libavfilter/vf_transpose_npp.c
+++ b/libavfilter/vf_transpose_npp.c
@@ -378,6 +378,9 @@ static int npptranspose_filter(AVFilterContext *ctx, 
AVFrame *out, AVFrame *in)
     if (ret < 0)
         return ret;
 
+    s->tmp_frame->width  = src->width;
+    s->tmp_frame->height = src->height;
+
     av_frame_move_ref(out, src);
     av_frame_move_ref(src, s->tmp_frame);
 

-- 
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