diff mbox

[FFmpeg-devel,v1,04/11] lavc/dvdsubenc: Replace magic number by micro for bprint init

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

Commit Message

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

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

Patch

diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c
index 26afdc6..ff95ed2 100644
--- a/libavcodec/dvdsubenc.c
+++ b/libavcodec/dvdsubenc.c
@@ -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:");