Commit 3e92c853 authored by bcoudurier's avatar bcoudurier

set avg frame rate in mkv demuxer

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23152 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 74273be8
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment