[FFmpeg-cvslog] dvdsubenc: set frame size in extradata.
Nicolas George
git at videolan.org
Tue Aug 14 11:33:22 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Aug 7 19:05:43 2012 +0200| [17e40236cb36ed27632159b2821ce0c42dc301e9] | committer: Nicolas George
dvdsubenc: set frame size in extradata.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=17e40236cb36ed27632159b2821ce0c42dc301e9
---
libavcodec/dvdsubenc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c
index 1939cb8..7db4726 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",
More information about the ffmpeg-cvslog
mailing list