mirror of https://github.com/FFmpeg/FFmpeg.git
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->buf.m.planes[i].length = 0), meaning that the counter was never incremented and break was never reached. This is fixed in the commit by using a well defined iteration range. Signed-off-by: Aman Gupta <aman@tmm1.net>pull/324/head
parent
fd3ee7a92e
commit
1aec1183f3
1 changed files with 3 additions and 5 deletions
Loading…
Reference in new issue