Hi! I think, before first call to avcodec_decode_video, the time_base was obtained from MP4 file container header. After first call to avcodec_decode_video this value was extracted from H264 bitstream. The same situation may be available for AVI file format or many others.
slippyr4 wrote: > Hi All, > > I'm seeing some weird behaviour:- > > I open an h264 mp4 file, and get the AVCodecContext for the video stream. > The ->time_base is 1/25 > > However, after the first call to avcodec_decode_video, the > AVCodecContext->time_base has changed to 1001/25000 > > This only seems to happen for h264 (Codec is "H.264 / AVC / MPEG-4 AVC / > MPEG-4 part 10"). I've tried the same code for a 25fps mpeg2 file and the > time_base doesn't change. > > Is this normal behaviour? I personally don't understand it. > > Thanks > > Slip > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > > > _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
