[Libav-user] av_frame_get_best_effort_timestamp(): PTS or DTS?

Lucas Soltic lucas.soltic at orange.fr
Fri Mar 28 21:19:55 CET 2014


Does av_frame_get_best_effort_timestamp() gives a PTS or DTS?

At first I would have thought it's a PTS, because it's impossible for decoding to correctly happen if DTS does not exist in the packet, but then I read that the packet DTS may be AV_NOPTS_VALUE (DTS being a NOPTS..??!). If that is correct, is there a reliable way to know the DTS too (in the core meaning of DTS, even if the file does not set it)?


More information about the Libav-user mailing list