On 08/01/16 18:01, Anton Khirnov wrote:
> When there is a non-zero decoding delay due to reordering, the first dts
> should be lower than the first pts (since the first packet fed to the
> decoder does not produce any output).
> 
> Use the same scheme used in mpegvideo_enc (which comes from x264
> originally) -- wait for first two timestamps and extrapolate linearly to
> the past to produce the first dts value.
> ---
>  libavcodec/nvenc.c | 49 +++++++++++++++++++++++++++++++++++++++++++++----
>  libavcodec/nvenc.h |  5 ++++-
>  2 files changed, 49 insertions(+), 5 deletions(-)
> 

Sounds fine, probably the machinery might be factorized (I'll need it
for other encoders).

lu

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to