Commit 39523030 authored by Luca Barbato's avatar Luca Barbato

mov: Set the timescale for data streams

Data streams have a defined timebase, do not ignore it.
parent b886f5c2
......@@ -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;
......
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