v4l2: bufferpool: Fix large encoded stream regression

Nicolas Dufresne requested to merge ndufresne/gstreamer:v4l2-codec-fixes into main

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.

Merge request reports