From b4d665bf69b7470ada5213128ec4c2a39a3e4fde Mon Sep 17 00:00:00 2001 From: Limin Wang Date: Wed, 29 Sep 2021 20:24:12 +0800 Subject: [PATCH] avformat/libsrt: specify base of maxbw string to 10 instead of auto-detect Make all options string conversion consistent. Signed-off-by: Limin Wang --- libavformat/libsrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c index 5aef0e731e..c6308d1f6a 100644 --- a/libavformat/libsrt.c +++ b/libavformat/libsrt.c @@ -530,7 +530,7 @@ static int libsrt_open(URLContext *h, const char *uri, int flags) p = strchr(uri, '?'); if (p) { if (av_find_info_tag(buf, sizeof(buf), "maxbw", p)) { - s->maxbw = strtoll(buf, NULL, 0); + s->maxbw = strtoll(buf, NULL, 10); } if (av_find_info_tag(buf, sizeof(buf), "pbkeylen", p)) { s->pbkeylen = strtol(buf, NULL, 10);