У пт, 2009-03-27 у 12:00 +0100, Larbi Joubala пише: > > I use libavformat in my project and I don't know why there are two > timebases stored in AVFormatContext(one in AVStream and one in > AVCodecContext)? What is the signification of each timebase? What > timebase to store in my library which wraps libavformat? >
time_base in AVStream used with pts/dts from AVPackets and time_base in AVCodecContext is for pts in AVFrames. In reality, not all codecs set pts in AVFrame, but you may need this value if pts/dst values not available in AVPackets for calculating frame time from frame rate. At least, I'm doing this way. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
