]> git.sesse.net Git - ffmpeg/commit
avcodec/v4l2_buffers: don't prevent enqueue capture buffer to driver
authorMing Qian <ming.qian@nxp.com>
Mon, 16 Mar 2020 02:02:08 +0000 (10:02 +0800)
committerAndriy Gelman <andriy.gelman@gmail.com>
Thu, 30 Apr 2020 01:55:35 +0000 (21:55 -0400)
commit7afd34050c1190e59e572a7882916a7dd4670d55
treefe4f538f37bd7bdf33f63e218c27a36aa6156f65
parente444e5bb1ad9434ab79790a5aececcd6b783360b
avcodec/v4l2_buffers: don't prevent enqueue capture buffer to driver

Enqueue/dequeue of the capture buffers should continue while draining.

Reference: linux/Documentation/media/uapi/v4l/dev-decoder.rst

    "The client must continue to handle both queues independently,
     similarly to normal decode operation. This includes:
     ...
     - queuing and dequeuing CAPTURE buffers, until a buffer marked with
       the V4L2_BUF_FLAG_LAST flag is dequeued"

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
libavcodec/v4l2_buffers.c