lavd/v4l2: reduce variable scope
device and cap are local to the loop iteration, there is no need for them to retain their values. Especially for device it may be dangerous, since it points to av_malloc'ed data.
Please register or sign in to comment