Skip to content

msdkdec: skip frame if the max decode time is negative

A negative max decode time means decoding in time is no longer possible and should therefore skip. This fixes case where the decoder is always pushing frames having a pts older than the GstVideoDecoder->earliest_time whereas the pending frame are valid. So just skip the bad frame to make the decoder in time again.

gst-libav is also skipping frames when the max decode time is negative, see gst_ffmpegviddec_do_qos.

Merge request reports

Loading