Commit d3e3ffa5 authored by Anton Khirnov's avatar Anton Khirnov

rmdec: don't set codec timebase.

It's not supposed to be set outside of lavc.
Set r_frame_rate instead.
parent 741a05a2
...@@ -332,10 +332,9 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb, ...@@ -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) if ((ret = rm_read_extradata(pb, st->codec, codec_data_size - (avio_tell(pb) - codec_pos))) < 0)
return ret; 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); 0x10000, fps, (1 << 30) - 1);
st->avg_frame_rate.num = st->codec->time_base.den; st->avg_frame_rate = st->r_frame_rate;
st->avg_frame_rate.den = st->codec->time_base.num;
} }
skip: skip:
......
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