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

Git pushed a commit to branch master
in repository ffmpeg.

commit d595a182874affeec8d0a736329d5268a020df3f
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Sun Jan 4 11:14:03 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Wed Jan 7 16:36:07 2026 +0100

    fftools/graph/graphprint: Replace always-false check by assert
    
    This check makes no sense, as the pointer arithmetic involved
    in &fg->graph_print_buf would be UB if fg were NULL.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 fftools/graph/graphprint.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/fftools/graph/graphprint.c b/fftools/graph/graphprint.c
index 26d2fd381f..9a8c4c4230 100644
--- a/fftools/graph/graphprint.c
+++ b/fftools/graph/graphprint.c
@@ -946,16 +946,13 @@ fail:
 
 int print_filtergraph(FilterGraph *fg, AVFilterGraph *graph)
 {
+    av_assert2(fg);
+
     GraphPrintContext *gpc = NULL;
     AVTextFormatContext *tfc;
     AVBPrint *target_buf = &fg->graph_print_buf;
     int ret;
 
-    if (!fg) {
-        av_log(NULL, AV_LOG_ERROR, "Invalid filter graph provided\n");
-        return AVERROR(EINVAL);
-    }
-
     if (target_buf->len)
         av_bprint_finalize(target_buf, NULL);
 

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

Reply via email to