提交 1095d442 编写于 作者: B Baptiste Coudurier

set avg frame rate in mkv demuxer

Originally committed as revision 23152 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 43d09faf
......@@ -1390,6 +1390,8 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
255);
if (st->codec->codec_id != CODEC_ID_H264)
st->need_parsing = AVSTREAM_PARSE_HEADERS;
if (track->default_duration)
st->avg_frame_rate = av_d2q(1000000000.0/track->default_duration, INT_MAX);
} else if (track->type == MATROSKA_TRACK_TYPE_AUDIO) {
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
st->codec->sample_rate = track->audio.out_samplerate;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册