add uiMaxNalSize to support the maximum nal size setting
Merge pull request #560 from ruil2/encoder_nal

add uiMaxNalSize to support the maximum nal size setting