mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-10 09:31:06 +02:00
dvdsubenc: set frame size in extradata.
This commit is contained in:
parent
b1511e00f6
commit
17e40236cb
@ -398,6 +398,8 @@ static int dvdsub_init(AVCodecContext *avctx)
|
||||
memcpy(dvdc->global_palette, default_palette, sizeof(dvdc->global_palette));
|
||||
|
||||
av_bprint_init(&extradata, 0, 1);
|
||||
if (avctx->width && avctx->height)
|
||||
av_bprintf(&extradata, "size: %dx%d\n", avctx->width, avctx->height);
|
||||
av_bprintf(&extradata, "palette:");
|
||||
for (i = 0; i < 16; i++)
|
||||
av_bprintf(&extradata, " %06"PRIx32"%c",
|
||||
|
Loading…
Reference in New Issue
Block a user