On Sat, 10 Dec 2011 13:17:02 +0100, Janne Grunau <[email protected]> wrote: > On 2011-12-10 12:41:55 +0100, Anton Khirnov wrote: > > It's not supposed to be set outside of lavf. Set r_frame_rate and > > avg_frame_rate instead. > > --- > > libavformat/rawdec.c | 2 +- > > tests/ref/fate/h264-lossless | 18 +++++++++--------- > > 2 files changed, 10 insertions(+), 10 deletions(-) > > > > diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c > > index 81dd8b4..589cdd5 100644 > > --- a/libavformat/rawdec.c > > +++ b/libavformat/rawdec.c > > @@ -159,7 +159,7 @@ int ff_raw_video_read_header(AVFormatContext *s, > > goto fail; > > } > > > > - st->codec->time_base = (AVRational){framerate.den, framerate.num}; > > + st->r_frame_rate = st->avg_frame_rate = framerate; > > avpriv_set_pts_info(st, 64, 1, 1200000); > > ok > > > fail: > > diff --git a/tests/ref/fate/h264-lossless b/tests/ref/fate/h264-lossless > > index c6659ca..30a70b5 100644 > > --- a/tests/ref/fate/h264-lossless > > +++ b/tests/ref/fate/h264-lossless > > do you have an idea why this is the only sample which timestamps are > influenced by the change? >
It apparrently contains 1/60 as the codec-level timebase, so avformat_find_stream_info() sets 60 as the framerate. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
