Re: [FFmpeg-devel] [PATCH 1/2] avcodec/v4l2_buffers: Fix infinite loop

2019-11-01 Thread Aman Gupta
On Fri, Nov 1, 2019 at 6:39 AM Andriy Gelman wrote: > On Sun, 27. Oct 00:19, Andriy Gelman wrote: > > From: Andriy Gelman > > > > This part of the code counts the number of planes returned by the v4l2 > > device for each queried capture/output buffer. > > When testing the GPU h264 encoder on Nvi

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/v4l2_buffers: Fix infinite loop

2019-11-01 Thread Andriy Gelman
On Sun, 27. Oct 00:19, Andriy Gelman wrote: > From: Andriy Gelman > > This part of the code counts the number of planes returned by the v4l2 > device for each queried capture/output buffer. > When testing the GPU h264 encoder on Nvidia's Jetson Nano, this caused an > infinite loop because avbuf->

[FFmpeg-devel] [PATCH 1/2] avcodec/v4l2_buffers: Fix infinite loop

2019-10-26 Thread Andriy Gelman
From: Andriy Gelman This part of the code counts the number of planes returned by the v4l2 device for each queried capture/output buffer. When testing the GPU h264 encoder on Nvidia's Jetson Nano, this caused an infinite loop because avbuf->buf.length included some empty buffers (i.e. where avbuf