Quoting Zhao Zhili (2023-01-04 17:12:56) > > It is currently an API guarantee that all encoders return valid DTS > > values, so this encoder is behaving in an invalid way. > > It's an reasonable requirement, but could you elaborate on where is the doc > explicitly says that?
I am not aware of this being explicitly documented, but then our documentation is sadly far from complete. But this was one of the major reasons for adding avcodec_encode_video2() back in 2012 (later replaced by avcodec_send_frame()+receive_packet()). Also see 8de1ee9f725aa3c550f425bd3120bcd95d5b2ea8. -- Anton Khirnov _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".