rmdec: don't set codec timebase.
authorAnton Khirnov <anton@khirnov.net>
Mon, 28 Nov 2011 08:17:46 +0000 (09:17 +0100)
committerAnton Khirnov <anton@khirnov.net>
Wed, 30 Nov 2011 06:47:43 +0000 (07:47 +0100)
It's not supposed to be set outside of lavc.
Set r_frame_rate instead.

libavformat/rmdec.c

index e3b3e5a..a13f970 100644 (file)
@@ -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: