lavc/dvdsubenc: Replace the number by macro for bprint init
authorJun Zhao <mypopydev@gmail.com>
Sun, 10 Jun 2018 07:59:03 +0000 (15:59 +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>
libavcodec/dvdsubenc.c

index 26afdc6..ff95ed2 100644 (file)
@@ -438,7 +438,7 @@ static int dvdsub_init(AVCodecContext *avctx)
     av_assert0(sizeof(dvdc->global_palette) == sizeof(default_palette));
     memcpy(dvdc->global_palette, default_palette, sizeof(dvdc->global_palette));
 
-    av_bprint_init(&extradata, 0, 1);
+    av_bprint_init(&extradata, 0, AV_BPRINT_SIZE_AUTOMATIC);
     if (avctx->width && avctx->height)
         av_bprintf(&extradata, "size: %dx%d\n", avctx->width, avctx->height);
     av_bprintf(&extradata, "palette:");