diff options
author | Aman Gupta <aman@tmm1.net> | 2019-08-30 15:42:00 -0700 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2019-09-11 10:28:56 -0700 |
commit | 3475758a3791dc89c6e7c406f8b032f035cd7d1e (patch) | |
tree | c428cfe43d5313cabd0db027712659bec845c133 /libavcodec/v4l2_m2m_dec.c | |
parent | 8dc973dc89194d536425f7042b90bb6d3808be23 (diff) | |
download | ffmpeg-3475758a3791dc89c6e7c406f8b032f035cd7d1e.tar.gz |
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>
Diffstat (limited to 'libavcodec/v4l2_m2m_dec.c')
-rw-r--r-- | libavcodec/v4l2_m2m_dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/v4l2_m2m_dec.c b/libavcodec/v4l2_m2m_dec.c index fb2bfde714..a3744208f3 100644 --- a/libavcodec/v4l2_m2m_dec.c +++ b/libavcodec/v4l2_m2m_dec.c @@ -242,6 +242,7 @@ static const AVOption options[] = { .close = v4l2_decode_close, \ .bsfs = bsf_name, \ .capabilities = AV_CODEC_CAP_HARDWARE | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AVOID_PROBING, \ + .caps_internal = FF_CODEC_CAP_SETS_PKT_DTS, \ .wrapper_name = "v4l2m2m", \ }; |