lavf/icecast: Replace the number by macro for bprint init
authorJun Zhao <mypopydev@gmail.com>
Sun, 10 Jun 2018 08:02:15 +0000 (16:02 +0800)
committerJun Zhao <jun.zhao@intel.com>
Sun, 17 Jun 2018 01:59:33 +0000 (09:59 +0800)
Replace the number by macro for bprint init.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
libavformat/icecast.c

index 02e3e38..c93b06b 100644 (file)
@@ -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);