v4l2: bufferpool: Fix large encoded stream regression
This MR mainly fixes #2953 (closed) . It additionally fixes minors issues like spurious "decoder is producing too many buffers" on empty LAST buffer and missing error handling when width/height return by the driver causes integer overflow.