diff options
author | Andriy Gelman <andriy.gelman@gmail.com> | 2019-10-27 00:19:46 -0400 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2019-11-01 15:19:55 -0700 |
commit | 1aec1183f3e82e9aa20fe23d961f663c1efc45fb (patch) | |
tree | c252058e90ee65a810f9935678f60fd73937cb64 /libavfilter | |
parent | fd3ee7a92e9227ee44e2a0d837ba9879959b15d7 (diff) | |
download | ffmpeg-1aec1183f3e82e9aa20fe23d961f663c1efc45fb.tar.gz |
avcodec/v4l2_buffers: Fix infinite loop
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>
Diffstat (limited to 'libavfilter')
0 files changed, 0 insertions, 0 deletions