(HEVC/Research) fix MAX_FRAME_SIZE for big sequences.