]> git.sesse.net Git - ffmpeg/commit
avcodec/v4l2_m2m_enc: buffer frame if it cannot be enqueued
authorAndriy Gelman <andriy.gelman@gmail.com>
Sun, 23 Aug 2020 17:33:37 +0000 (13:33 -0400)
committerAndriy Gelman <andriy.gelman@gmail.com>
Sun, 23 Aug 2020 17:42:07 +0000 (13:42 -0400)
commit8bc7f69cefbcbb265b41717608dc8436dc864a55
tree3d2de02c4d41984956f1aee890d12da3058c0d3a
parent994d2567f13c11422aeb6506b6afca42a900d620
avcodec/v4l2_m2m_enc: buffer frame if it cannot be enqueued

Currently if the frame buffers are full, the frame is unrefed and
dropped.  Instead buffer the frame so that it is enqueued in the
next v4l2_receive_packet() call.  The behavior was observed on
DragonBoard 410c.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
libavcodec/v4l2_m2m.c
libavcodec/v4l2_m2m_enc.c