[FFmpeg-cvslog] mov: Set the timescale for data streams
Luca Barbato
git at videolan.org
Tue Aug 20 12:25:29 CEST 2013
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Mon Aug 19 17:18:21 2013 +0200| [39523030108815242178ac5e209c83070bd1baef] | committer: Luca Barbato
mov: Set the timescale for data streams
Data streams have a defined timebase, do not ignore it.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=39523030108815242178ac5e209c83070bd1baef
---
libavformat/movenc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index d3aa3db..b41261c 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;
More information about the ffmpeg-cvslog
mailing list