[FFmpeg-cvslog] avformat/libsrt: specify base of maxbw string to 10 instead of auto-detect

Limin Wang git at videolan.org
Sun Oct 10 06:01:51 EEST 2021


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Wed Sep 29 20:24:12 2021 +0800| [b4d665bf69b7470ada5213128ec4c2a39a3e4fde] | committer: Limin Wang

avformat/libsrt: specify base of maxbw string to 10 instead of auto-detect

Make all options string conversion consistent.

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

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

 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);



More information about the ffmpeg-cvslog mailing list