[FFmpeg-devel] [PATCH 4/6] dvdsubenc: set frame size in extradata.

Nicolas George nicolas.george at normalesup.org
Tue Aug 7 21:13:32 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavcodec/dvdsubenc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c
index 9a15e06..c567096 100644
--- a/libavcodec/dvdsubenc.c
+++ b/libavcodec/dvdsubenc.c
@@ -381,6 +381,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",
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list