mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 10:22:10 +00:00
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>
This commit is contained in:
parent
df9fe79b3c
commit
d0a2ad241c
@ -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:");
|
||||
|
Loading…
Reference in New Issue
Block a user