提交 6e269594 编写于 作者: B Baptiste Coudurier 提交者: Michael Niedermayer

set track timescale to mov timescale if 0 patch by (Baptiste COUDURIER...

set track timescale to mov timescale if 0 patch by (Baptiste COUDURIER <baptiste.coudurier smartjog com)

Originally committed as revision 5121 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 5f112e1f
......@@ -1635,6 +1635,8 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
if(!sc->time_rate)
sc->time_rate=1;
if(!sc->time_scale)
sc->time_scale= mov->time_scale;
av_set_pts_info(s->streams[i], 64, sc->time_rate, sc->time_scale);
if(s->streams[i]->duration != AV_NOPTS_VALUE){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册