From: Luca Barbato Date: Mon, 19 Aug 2013 15:18:21 +0000 (+0200) Subject: mov: Set the timescale for data streams X-Git-Tag: android-x86-4.4-r1~364^2~434 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=39523030108815242178ac5e209c83070bd1baef;p=android-x86%2Fexternal-ffmpeg.git mov: Set the timescale for data streams Data streams have a defined timebase, do not ignore it. --- diff --git a/libavformat/movenc.c b/libavformat/movenc.c index d3aa3db434..b41261c9a3 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -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;