[FFmpeg-cvslog] avformat/vivo: fix sscanf specifer for double

Kacper Michajłow git at videolan.org
Fri Jul 25 22:49:19 EEST 2025


ffmpeg | branch: master | Kacper Michajłow <kasper93 at gmail.com> | Tue Jul 22 20:51:57 2025 +0200| [a9b9636046072035ea377196f891d35cd218fe48] | committer: Kacper Michajłow

avformat/vivo: fix sscanf specifer for double

Signed-off-by: Kacper Michajłow <kasper93 at gmail.com>

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

 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;



More information about the ffmpeg-cvslog mailing list