1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-15 11:28:55 +02:00

ffmpeg: copy subtitles frame dimensions.

The sub-movtextenc ref file changes because the dimensions
(400×60) are stored by the format.
This commit is contained in:
Nicolas George 2012-08-09 11:55:22 +02:00
parent e4f4d99df8
commit 690ef618b1
2 changed files with 5 additions and 1 deletions

View File

@ -2188,6 +2188,10 @@ static int transcode_init(void)
break; break;
case AVMEDIA_TYPE_SUBTITLE: case AVMEDIA_TYPE_SUBTITLE:
codec->time_base = (AVRational){1, 1000}; 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; break;
default: default:
abort(); abort();

View File

@ -1 +1 @@
42640029a44ce4c5748e5e7ba5c189fd 0435265a76ab2f6e66627089d76845f4