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

Git pushed a commit to branch master
in repository ffmpeg.

commit 9d662af7efb1dfe154feafdf47da969f0f42b6d4
Author:     Zhao Zhili <[email protected]>
AuthorDate: Wed Oct 14 00:10:13 2026 +0800
Commit:     Zhao Zhili <[email protected]>
CommitDate: Sun Oct 18 15:35:57 2026 +0000

    avfilter/vf_signature: fix error check of get_frame_filename()
    
    It returns a negative AVERROR code on failure, not -1.
    
    Signed-off-by: Zhao Zhili <[email protected]>
---
 libavfilter/vf_signature.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_signature.c b/libavfilter/vf_signature.c
index b655b08a87..0bc776a38c 100644
--- a/libavfilter/vf_signature.c
+++ b/libavfilter/vf_signature.c
@@ -726,7 +726,7 @@ static av_cold int init(AVFilterContext *ctx)
     }
 
     /* check filename */
-    if (sic->nb_inputs > 1 && strlen(sic->filename) > 0 && 
get_frame_filename(tmp, sizeof(tmp), sic->filename, 0) == -1) {
+    if (sic->nb_inputs > 1 && strlen(sic->filename) > 0 && 
get_frame_filename(tmp, sizeof(tmp), sic->filename, 0) < 0) {
         av_log(ctx, AV_LOG_ERROR, "The filename must contain %%d or %%0nd, if 
you have more than one input.\n");
         return AVERROR(EINVAL);
     }

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