[FFmpeg-devel] [Internet]Re: [PATCH v2 5/7] avcodec/mediacodecenc: remove the strategy to create DTS
Anton Khirnov
anton at khirnov.net
Thu Jan 5 10:07:49 EET 2023
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
More information about the ffmpeg-devel
mailing list