Commit 7045cc9b80 for ffmpeg
commit 7045cc9b8020ebaae156f4947baa752625056f90
Author: Zhao Zhili <quinkblack@foxmail.com>
Date: Wed Oct 14 00:10:13 2026 +0800
avfilter/vf_signature: fix inverted %d check in get_frame_filename()
The first %d was rejected instead of a second one.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
diff --git a/libavfilter/vf_signature.c b/libavfilter/vf_signature.c
index 0bc776a38c..88ef8bb570 100644
--- a/libavfilter/vf_signature.c
+++ b/libavfilter/vf_signature.c
@@ -584,7 +584,7 @@ static int get_frame_filename(char *buf, int buf_size, const char *path, int64_t
case '%':
goto addchar;
case 'd':
- if (!percentd_found)
+ if (percentd_found)
goto fail;
percentd_found = 1;
if (number < 0)