ffmpeg | branch: master | Nicolas Gaullier <nicolas.gaullier@cji.paris> | Fri 
Jun 20 13:07:37 2025 +0200| [2b25a66238c2508ecc02b0610f58bcf2156f3bec] | 
committer: Marvin Scholz

fftools/textformat: fix print 64 bit integers

Regression in ffprobe since textformat introduction
in d7a3f68feae0b1c3718f9d2671c6d41c60a40680.

Fixes #11638

Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris>
Reviewed-by: Marvin Scholz <epira...@gmail.com>
Reviewed-by: softworkz <softwo...@hotmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2b25a66238c2508ecc02b0610f58bcf2156f3bec
---

 fftools/textformat/avtextformat.c | 2 +-
 fftools/textformat/avtextformat.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fftools/textformat/avtextformat.c 
b/fftools/textformat/avtextformat.c
index e1aaa9ba57..af47879767 100644
--- a/fftools/textformat/avtextformat.c
+++ b/fftools/textformat/avtextformat.c
@@ -433,7 +433,7 @@ static char *value_string(const AVTextFormatContext *tctx, 
char *buf, int buf_si
 }
 
 
-void avtext_print_unit_int(AVTextFormatContext *tctx, const char *key, int 
value, const char *unit)
+void avtext_print_unit_int(AVTextFormatContext *tctx, const char *key, int64_t 
value, const char *unit)
 {
     char val_str[128];
     struct unit_value uv;
diff --git a/fftools/textformat/avtextformat.h 
b/fftools/textformat/avtextformat.h
index cf23d93871..8316829af5 100644
--- a/fftools/textformat/avtextformat.h
+++ b/fftools/textformat/avtextformat.h
@@ -169,7 +169,7 @@ void avtext_print_integer(AVTextFormatContext *tctx, const 
char *key, int64_t va
 
 int avtext_print_string(AVTextFormatContext *tctx, const char *key, const char 
*val, int flags);
 
-void avtext_print_unit_int(AVTextFormatContext *tctx, const char *key, int 
value, const char *unit);
+void avtext_print_unit_int(AVTextFormatContext *tctx, const char *key, int64_t 
value, const char *unit);
 
 void avtext_print_rational(AVTextFormatContext *tctx, const char *key, 
AVRational q, char sep);
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to