]> git.sesse.net Git - ffmpeg/commit
avcodec/v4l2_m2m_dec: set pkt_dts on decoded frames to NOPTS
authorAman Gupta <aman@tmm1.net>
Fri, 30 Aug 2019 22:42:00 +0000 (15:42 -0700)
committerAman Gupta <aman@tmm1.net>
Wed, 11 Sep 2019 17:28:56 +0000 (10:28 -0700)
commit3475758a3791dc89c6e7c406f8b032f035cd7d1e
treec428cfe43d5313cabd0db027712659bec845c133
parent8dc973dc89194d536425f7042b90bb6d3808be23
avcodec/v4l2_m2m_dec: set pkt_dts on decoded frames to NOPTS

Without this ffmpeg will attempt to copy the dts from the
most recently enqueued packet into the most recently dequeued
frame, which does not account for the buffering inside v4l2
and is not accurate.

Signed-off-by: Aman Gupta <aman@tmm1.net>
libavcodec/v4l2_buffers.c
libavcodec/v4l2_m2m_dec.c