[FFmpeg-devel] [PATCH 02/10] avformat/vivo: fix sscanf specifer for double

Kacper Michajłow kasper93 at gmail.com
Tue Jul 22 22:16:03 EEST 2025


Signed-off-by: Kacper Michajłow <kasper93 at gmail.com>
---
 libavformat/vivo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/vivo.c b/libavformat/vivo.c
index 76aa4a21c2..c20788f8bb 100644
--- a/libavformat/vivo.c
+++ b/libavformat/vivo.c
@@ -209,7 +209,7 @@ static int vivo_read_header(AVFormatContext *s)
                 value_used = 1;
             } else if (!strcmp(key, "FPS")) {
                 double d;
-                if (av_sscanf(value, "%f", &d) != 1)
+                if (av_sscanf(value, "%lf", &d) != 1)
                     return AVERROR_INVALIDDATA;
 
                 value_used = 1;
-- 
2.50.1



More information about the ffmpeg-devel mailing list