Mercurial > libavformat.hg
changeset 6005:10b0e7cac09f libavformat
set avg frame rate in mkv demuxer
author | bcoudurier |
---|---|
date | Mon, 17 May 2010 18:12:58 +0000 |
parents | 982c13b665cf |
children | 86f5c95d5ca6 |
files | matroskadec.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskadec.c Sun May 16 07:56:31 2010 +0000 +++ b/matroskadec.c Mon May 17 18:12:58 2010 +0000 @@ -1390,6 +1390,8 @@ 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;