g722dec: check output buffer size before decoding