Commit d0a2ad24 authored by Jun Zhao's avatar Jun Zhao Committed by Jun Zhao

lavc/dvdsubenc: Replace the number by macro for bprint init

Replace the number by macro for bprint init.
Signed-off-by: 's avatarJun Zhao <mypopydev@gmail.com>
parent df9fe79b
......@@ -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:");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment