summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-11-28 09:17:46 +0100
committerAnton Khirnov <anton@khirnov.net>2011-11-30 07:47:43 +0100
commitd3e3ffa501beab09ac7c73d10235b372c0311615 (patch)
tree878648ad96f71ac00cbf8671b9a2346de0ce1b50
parent741a05a2936505476ec0ff484d1251276635af73 (diff)
downloadffmpeg-d3e3ffa501beab09ac7c73d10235b372c0311615.tar.gz
rmdec: don't set codec timebase.
It's not supposed to be set outside of lavc. Set r_frame_rate instead.
-rw-r--r--libavformat/rmdec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index e3b3e5ac32..a13f970fc6 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -332,10 +332,9 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb,
if ((ret = rm_read_extradata(pb, st->codec, codec_data_size - (avio_tell(pb) - codec_pos))) < 0)
return ret;
- av_reduce(&st->codec->time_base.num, &st->codec->time_base.den,
+ av_reduce(&st->r_frame_rate.den, &st->r_frame_rate.num,
0x10000, fps, (1 << 30) - 1);
- st->avg_frame_rate.num = st->codec->time_base.den;
- st->avg_frame_rate.den = st->codec->time_base.num;
+ st->avg_frame_rate = st->r_frame_rate;
}
skip: