Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-08-07 21:05:43 +0400
committerNicolas George <nicolas.george@normalesup.org>2012-08-14 13:17:45 +0400
commit17e40236cb36ed27632159b2821ce0c42dc301e9 (patch)
tree7be9f2848c528075c161fb609db09059e406752f /libavcodec
parentb1511e00f6fefde6cb31b2e17f7812cfac1c8bd6 (diff)
dvdsubenc: set frame size in extradata.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dvdsubenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c
index 1939cb86b4..7db472693d 100644
--- a/libavcodec/dvdsubenc.c
+++ b/libavcodec/dvdsubenc.c
@@ -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",