diff mbox series

[FFmpeg-devel] avformat/aeaenc: Fix printf-specifier

Message ID AS8P250MB07444120E8DEC8FE0B9B32168F282@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 7b48cc61bed4c20ad69ee39cfe58af42e222d0c3
Headers show
Series [FFmpeg-devel] avformat/aeaenc: Fix printf-specifier | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt March 15, 2024, 2:56 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/aeaenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andreas Rheinhardt March 17, 2024, 2:46 p.m. UTC | #1
Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavformat/aeaenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/aeaenc.c b/libavformat/aeaenc.c
> index 65d018c844..495e98c6a2 100644
> --- a/libavformat/aeaenc.c
> +++ b/libavformat/aeaenc.c
> @@ -91,7 +91,7 @@ static int aea_write_trailer(struct AVFormatContext *s)
>          avio_seek(pb, 260, SEEK_SET);
>          total_blocks = st->nb_frames * st->codecpar->ch_layout.nb_channels;
>          if (total_blocks > UINT32_MAX) {
> -            av_log(s, AV_LOG_WARNING, "Too many frames in the file to properly encode the header (%ld)."
> +            av_log(s, AV_LOG_WARNING, "Too many frames in the file to properly encode the header (%"PRId64")."
>                     " Block count in the header will be truncated.\n", total_blocks);
>              total_blocks = UINT32_MAX;
>          }

Will apply tomorrow unless there are objections.

- Andreas
diff mbox series

Patch

diff --git a/libavformat/aeaenc.c b/libavformat/aeaenc.c
index 65d018c844..495e98c6a2 100644
--- a/libavformat/aeaenc.c
+++ b/libavformat/aeaenc.c
@@ -91,7 +91,7 @@  static int aea_write_trailer(struct AVFormatContext *s)
         avio_seek(pb, 260, SEEK_SET);
         total_blocks = st->nb_frames * st->codecpar->ch_layout.nb_channels;
         if (total_blocks > UINT32_MAX) {
-            av_log(s, AV_LOG_WARNING, "Too many frames in the file to properly encode the header (%ld)."
+            av_log(s, AV_LOG_WARNING, "Too many frames in the file to properly encode the header (%"PRId64")."
                    " Block count in the header will be truncated.\n", total_blocks);
             total_blocks = UINT32_MAX;
         }