roqvideodec: Improve checking of input buffer bounds.