mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
mov: Set the timescale for data streams
Data streams have a defined timebase, do not ignore it.
This commit is contained in:
parent
b886f5c2f1
commit
3952303010
@ -3126,6 +3126,8 @@ static int mov_write_header(AVFormatContext *s)
|
||||
}
|
||||
} else if (st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
|
||||
track->timescale = st->codec->time_base.den;
|
||||
} else if (st->codec->codec_type == AVMEDIA_TYPE_DATA) {
|
||||
track->timescale = st->codec->time_base.den;
|
||||
}
|
||||
if (!track->height)
|
||||
track->height = st->codec->height;
|
||||
|
Loading…
Reference in New Issue
Block a user