diff mbox series

[FFmpeg-devel,4/5] avformat/libsrt: specify base of maxbw string to 10 instead of auto-detect

Message ID 1632964440-24060-4-git-send-email-lance.lmwang@gmail.com
State Accepted
Commit b4d665bf69b7470ada5213128ec4c2a39a3e4fde
Headers show
Series [FFmpeg-devel,1/5] avfilter/vf_showinfo: minor adjustment for the dump format of ROI | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Lance Wang Sept. 30, 2021, 1:13 a.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Make all options string conversion consistent.

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavformat/libsrt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c
index 5aef0e7..c6308d1 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);