From 690ef618b1b0deae8a63ff7f3e4517c4adb70929 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Thu, 9 Aug 2012 11:55:22 +0200 Subject: ffmpeg: copy subtitles frame dimensions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sub-movtextenc ref file changes because the dimensions (400×60) are stored by the format. --- ffmpeg.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ffmpeg.c') diff --git a/ffmpeg.c b/ffmpeg.c index 5aeaba217a..043f68cb52 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2188,6 +2188,10 @@ static int transcode_init(void) break; case AVMEDIA_TYPE_SUBTITLE: codec->time_base = (AVRational){1, 1000}; + if (!codec->width) { + codec->width = input_streams[ost->source_index]->st->codec->width; + codec->height = input_streams[ost->source_index]->st->codec->height; + } break; default: abort(); -- cgit v1.2.3