aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-20 12:16:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-20 12:16:31 +0200
commit4a6f1be170a057ee3d582e5f110ed659926c093c (patch)
treefe4a945dcd5272bc828e1387e43b8a83d282e11a /libavformat
parente1acfd3cb0543815316ede06232d13e002562daa (diff)
parent39523030108815242178ac5e209c83070bd1baef (diff)
downloadffmpeg-4a6f1be170a057ee3d582e5f110ed659926c093c.tar.gz
Merge commit '39523030108815242178ac5e209c83070bd1baef'
* commit '39523030108815242178ac5e209c83070bd1baef': mov: Set the timescale for data streams Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 7212cb248a..8c07e60c13 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3696,7 +3696,9 @@ static int mov_write_header(AVFormatContext *s)
}
} else if (st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
track->timescale = st->codec->time_base.den;
- }else{
+ } else if (st->codec->codec_type == AVMEDIA_TYPE_DATA) {
+ track->timescale = st->codec->time_base.den;
+ } else {
track->timescale = MOV_TIMESCALE;
}
if (!track->height)