summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-08-19 17:18:21 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-08-20 00:22:58 +0200
commit39523030108815242178ac5e209c83070bd1baef (patch)
treef998b1d064396d407f0373a6f1a019f327763cd6 /libavformat/movenc.c
parentb886f5c2f1e71b3e60e4265c500158d392b4b9a4 (diff)
mov: Set the timescale for data streams
Data streams have a defined timebase, do not ignore it.
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c2
1 files changed, 2 insertions, 0 deletions
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;