rtl_sdr bytes_to_read wraparound for n > 2**31
In rtl_sdr: bytes_to_read wraps around for larger captures (e.g. when trying to log 1000s of IQ samples at 2.4M samples/s):
rtl_sdr test.iq -f 440000000 -s 2400000 -g 34 -n 2400000000
I attached a patch that fixes it (I lack the permission to open a PR). Tested on a 64bit Ubuntu 22.04 machine.