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

Git pushed a commit to branch master
in repository ffmpeg.

commit 1c4cd0e2e985f76789cdae2cbb8673313712114a
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Sep 29 04:54:49 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon Oct 12 00:42:48 2026 +0000

    avfilter/vf_showinfo: describe the frame it received, not the link
    
    Found during triage of the security report RqgTntCAW2qN.
---
 libavfilter/vf_showinfo.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index 21cde369f5..9aec0b6004 100644
--- a/libavfilter/vf_showinfo.c
+++ b/libavfilter/vf_showinfo.c
@@ -765,7 +765,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame 
*frame)
     FilterLink *inl = ff_filter_link(inlink);
     AVFilterContext *ctx = inlink->dst;
     ShowInfoContext *s = ctx->priv;
-    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
+    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(frame->format);
     uint32_t plane_checksum[4] = {0}, checksum = 0;
     int64_t sum[4] = {0}, sum2[4] = {0};
     int32_t pixelcount[4] = {0};
@@ -775,7 +775,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame 
*frame)
 
     for (plane = 0; plane < 4 && s->calculate_checksums && frame->data[plane] 
&& frame->linesize[plane]; plane++) {
         uint8_t *data = frame->data[plane];
-        int h = plane == 1 || plane == 2 ? AV_CEIL_RSHIFT(inlink->h, vsub) : 
inlink->h;
+        int h = plane == 1 || plane == 2 ? AV_CEIL_RSHIFT(frame->height, vsub) 
: frame->height;
         int linesize = av_image_get_linesize(frame->format, frame->width, 
plane);
         int width = linesize >> (bitdepth > 8);
 
@@ -975,4 +975,5 @@ const FFFilter ff_vf_showinfo = {
     FILTER_INPUTS(avfilter_vf_showinfo_inputs),
     FILTER_OUTPUTS(avfilter_vf_showinfo_outputs),
     .priv_size   = sizeof(ShowInfoContext),
+    .flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_PARAMS,
 };

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