diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-05-17 18:12:58 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-05-17 18:12:58 +0000 |
commit | 1095d4425865777a98b510d7af0816e093c6db23 (patch) | |
tree | e6696349ff6e2fa103c810a5a39d0ac1597ecde5 /libavformat | |
parent | 43d09fafd42c0c2b8f7c96d4abfaed01464c7966 (diff) | |
download | ffmpeg-1095d4425865777a98b510d7af0816e093c6db23.tar.gz |
set avg frame rate in mkv demuxer
Originally committed as revision 23152 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskadec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 4e6f375c5f..90356d818b 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -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; |