* [FFmpeg-devel] [PATCH] avfilter/drawtext: replace strcpy/strcat with av_strlcpy/av_strlcat
@ 2025-07-30 1:50 Sanjay Jangid
0 siblings, 0 replies; 3+ messages in thread
From: Sanjay Jangid @ 2025-07-30 1:50 UTC (permalink / raw)
To: ffmpeg-devel
Signed-off-by: Sanjay Jangid <sanjayjangid20m@gmail.com>
---
libavfilter/vf_drawtext.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index aae703b..5cd8633 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -1880,7 +1880,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame
*frame)
av_strlcpy(s->text, bbox->detect_label, sizeof(s->text));
for (int j = 0; j < bbox->classify_count; j++) {
av_strlcat(s->text, ", ", sizeof(s->text));
- av_strlcat(s->text, bbox->classify_labels[j],
sizeof(s->text));
+ av_strlcat(s->text,
bbox->classify_labels[j], sizeof(s->text));
}
s->x = bbox->x;
s->y = bbox->y - s->fontsize;
--
2.50.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH] avfilter/drawtext: replace strcpy/strcat with av_strlcpy/av_strlcat
2025-07-29 11:46 Sanjay Jangid
@ 2025-07-30 5:02 ` Yalda
0 siblings, 0 replies; 3+ messages in thread
From: Yalda @ 2025-07-30 5:02 UTC (permalink / raw)
To: FFmpeg development discussions and patches
I'm not seeing a code change, just indenting the same line. Mistake?
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* [FFmpeg-devel] [PATCH] avfilter/drawtext: replace strcpy/strcat with av_strlcpy/av_strlcat
@ 2025-07-29 11:46 Sanjay Jangid
2025-07-30 5:02 ` Yalda
0 siblings, 1 reply; 3+ messages in thread
From: Sanjay Jangid @ 2025-07-29 11:46 UTC (permalink / raw)
To: ffmpeg-devel
Signed-off-by: Sanjay Jangid <sanjayjangid20m@gmail.com>
---
libavfilter/vf_drawtext.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index aae703b..5cd8633 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -1880,7 +1880,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
av_strlcpy(s->text, bbox->detect_label, sizeof(s->text));
for (int j = 0; j < bbox->classify_count; j++) {
av_strlcat(s->text, ", ", sizeof(s->text));
- av_strlcat(s->text, bbox->classify_labels[j], sizeof(s->text));
+ av_strlcat(s->text, bbox->classify_labels[j], sizeof(s->text));
}
s->x = bbox->x;
s->y = bbox->y - s->fontsize;
--
2.50.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-30 5:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-30 1:50 [FFmpeg-devel] [PATCH] avfilter/drawtext: replace strcpy/strcat with av_strlcpy/av_strlcat Sanjay Jangid
-- strict thread matches above, loose matches on Subject: below --
2025-07-29 11:46 Sanjay Jangid
2025-07-30 5:02 ` Yalda
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git