avcodec/rscc: Check that the to be uncompressed input is large enough