[PR] avfilter/vf_quirc: Changed character specifier (PR #23710)

Jamaika1 via ffmpeg-devel <[email protected]> Sun, 05 Jul 2026 22:31:55 -0000
Newsgroups gmane.comp.video.ffmpeg.devel
Message-ID <178329071721.59.15921130568357819312@29965ddac10e>
PR #23710 opened by Jamaika1
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23710
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23710.patch

```
vf_quirc.c: In function 'filter_frame':
vf_quirc.c:104:46: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'int64_t' {aka 'long long int'} [-Wformat=]
  104 |            "Found count %d codes in image #%ld\n", codes_count, inl->frame_count_out);
      |                                            ~~^                  ~~~~~~~~~~~~~~~~~~~~
      |                                              |                     |
      |                                              long int              int64_t {aka long long int}
      |                                            %lld
```

# Summary of changes

Briefly describe what this PR does and why.

<!--
If this PR requires new FATE test samples, attach them to the PR and
list their target paths below (relative to the fate-suite root).

Attached filenames must match the sample's filename:

```fate-samples
# e.g. vorbis/new-sample.ogg
```
-->



>From c74f27955949dea8b2b33306cf0ea864ed7bf365 Mon Sep 17 00:00:00 2001
From: Jamaika1 <[email protected]>
Date: Sun, 5 Jul 2026 22:31:27 +0000
Subject: [PATCH] avfilter/vf_quirc: Changed character specifier

```
vf_quirc.c: In function 'filter_frame':
vf_quirc.c:104:46: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'int64_t' {aka 'long long int'} [-Wformat=]
  104 |            "Found count %d codes in image #%ld\n", codes_count, inl->frame_count_out);
      |                                            ~~^                  ~~~~~~~~~~~~~~~~~~~~
      |                                              |                     |
      |                                              long int              int64_t {aka long long int}
      |                                            %lld
```
---
 libavfilter/vf_quirc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_quirc.c b/libavfilter/vf_quirc.c
index d2ba48e7bc..4aaebc8ef0 100644
--- a/libavfilter/vf_quirc.c
+++ b/libavfilter/vf_quirc.c
@@ -101,7 +101,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
 
     codes_count = quirc_count(quirc->quirc);
     av_log(ctx, AV_LOG_VERBOSE,
-           "Found count %d codes in image #%ld\n", codes_count, inl->frame_count_out);
+           "Found count %d codes in image #%" PRId64 "\n", codes_count, inl->frame_count_out);
 
     if (codes_count) {
         int i, j;
-- 
2.52.0

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