Commit 17e40236 authored by Nicolas George's avatar Nicolas George

dvdsubenc: set frame size in extradata.

parent b1511e00
...@@ -398,6 +398,8 @@ static int dvdsub_init(AVCodecContext *avctx) ...@@ -398,6 +398,8 @@ static int dvdsub_init(AVCodecContext *avctx)
memcpy(dvdc->global_palette, default_palette, sizeof(dvdc->global_palette)); memcpy(dvdc->global_palette, default_palette, sizeof(dvdc->global_palette));
av_bprint_init(&extradata, 0, 1); 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:"); av_bprintf(&extradata, "palette:");
for (i = 0; i < 16; i++) for (i = 0; i < 16; i++)
av_bprintf(&extradata, " %06"PRIx32"%c", av_bprintf(&extradata, " %06"PRIx32"%c",
......
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