Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_dec: dequeue frame if input isn't ready

2022-01-02 Thread Andriy Gelman
On Tue, 28. Dec 18:41, Andriy Gelman wrote: > On Mon, 27. Dec 03:18, Cameron Gutman wrote: > > On 12/27/21 00:17, Andriy Gelman wrote: > > > On Tue, 14. Dec 02:12, Cameron Gutman wrote: > > >> The V4L2M2M API operates asynchronously, so multiple packets can > > >> be enqueued before getting a batch

Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_dec: dequeue frame if input isn't ready

2021-12-28 Thread Andriy Gelman
On Mon, 27. Dec 03:18, Cameron Gutman wrote: > On 12/27/21 00:17, Andriy Gelman wrote: > > On Tue, 14. Dec 02:12, Cameron Gutman wrote: > >> The V4L2M2M API operates asynchronously, so multiple packets can > >> be enqueued before getting a batch of frames back. Since it was > >> only possible to re

Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_dec: dequeue frame if input isn't ready

2021-12-27 Thread Cameron Gutman
On 12/27/21 00:17, Andriy Gelman wrote: > On Tue, 14. Dec 02:12, Cameron Gutman wrote: >> The V4L2M2M API operates asynchronously, so multiple packets can >> be enqueued before getting a batch of frames back. Since it was >> only possible to receive a frame by submitting another packet, >> there wa

Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_dec: dequeue frame if input isn't ready

2021-12-26 Thread Andriy Gelman
On Tue, 14. Dec 02:12, Cameron Gutman wrote: > The V4L2M2M API operates asynchronously, so multiple packets can > be enqueued before getting a batch of frames back. Since it was > only possible to receive a frame by submitting another packet, > there wasn't a way to drain those excess output frames

Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_dec: dequeue frame if input isn't ready

2021-12-24 Thread Andriy Gelman
On Tue, 14. Dec 02:12, Cameron Gutman wrote: > The V4L2M2M API operates asynchronously, so multiple packets can > be enqueued before getting a batch of frames back. Since it was > only possible to receive a frame by submitting another packet, > there wasn't a way to drain those excess output frames

[FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_dec: dequeue frame if input isn't ready

2021-12-13 Thread Cameron Gutman
The V4L2M2M API operates asynchronously, so multiple packets can be enqueued before getting a batch of frames back. Since it was only possible to receive a frame by submitting another packet, there wasn't a way to drain those excess output frames from when avcodec_receive_frame() returned AVERROR(E