Commit 690ef618 authored by Nicolas George's avatar Nicolas George

ffmpeg: copy subtitles frame dimensions.

The sub-movtextenc ref file changes because the dimensions
(400×60) are stored by the format.
parent e4f4d99d
......@@ -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();
......
42640029a44ce4c5748e5e7ba5c189fd
0435265a76ab2f6e66627089d76845f4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment