diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-08-09 11:55:22 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-08-14 11:17:45 +0200 |
commit | 690ef618b1b0deae8a63ff7f3e4517c4adb70929 (patch) | |
tree | 96916caf2fff023fae6ecb5cbc2e6122aea90fcb /ffmpeg.c | |
parent | e4f4d99df829d957f8f5541a3665d6631bdf94ca (diff) | |
download | ffmpeg-690ef618b1b0deae8a63ff7f3e4517c4adb70929.tar.gz |
ffmpeg: copy subtitles frame dimensions.
The sub-movtextenc ref file changes because the dimensions
(400×60) are stored by the format.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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(); |