1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

dvdsubenc: set frame size in extradata.

This commit is contained in:
Nicolas George 2012-08-07 19:05:43 +02:00
parent b1511e00f6
commit 17e40236cb

View File

@ -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",