[FFmpeg-devel,v1,08/11] lavf/icecast: Replace magic number by micro for bprint init

Submitted by Jun Zhao on June 10, 2018, 9:16 a.m.

Details

Message ID 1528622220-22930-9-git-send-email-mypopydev@gmail.com
State Accepted
Commit abb28d41ea8dd747eb86121781615d0722f386b3
Headers show

Commit Message

Jun Zhao June 10, 2018, 9:16 a.m.
Replace magic number by micro for bprint init.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
---
 libavformat/icecast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/icecast.c b/libavformat/icecast.c
index 02e3e38..c93b06b 100644
--- a/libavformat/icecast.c
+++ b/libavformat/icecast.c
@@ -96,7 +96,7 @@  static int icecast_open(URLContext *h, const char *uri, int flags)
     if (flags & AVIO_FLAG_READ)
         return AVERROR(ENOSYS);
 
-    av_bprint_init(&bp, 0, 1);
+    av_bprint_init(&bp, 0, AV_BPRINT_SIZE_AUTOMATIC);
 
     // Build header strings
     cat_header(&bp, "Ice-Name", s->name);