summaryrefslogtreecommitdiff
path: root/libavcodec/dvdsubenc.c
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2018-06-10 15:59:03 +0800
committerJun Zhao <jun.zhao@intel.com>2018-06-17 09:59:33 +0800
commitd0a2ad241c914bd69bf33490a7310f0a917c9053 (patch)
treef4aab76bec6b16a815f09a16b546ad01ead6daa2 /libavcodec/dvdsubenc.c
parentdf9fe79b3c32e8c909e6fe389d3b3432bc1356cf (diff)
lavc/dvdsubenc: Replace the number by macro for bprint init
Replace the number by macro for bprint init. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Diffstat (limited to 'libavcodec/dvdsubenc.c')
-rw-r--r--libavcodec/dvdsubenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c
index 26afdc666b..ff95ed2002 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:");